Spdk/lib/vhost
Changpeng Liu c9a97addeb vhost: don't start device before got valid descriptor
For each virt queue's kickfd and callfd, there are 2 invalid
status: VIRTIO_UNINITIALIZED_EVENTFD and VIRTIO_INVALID_EVENTFD.
Don't set the virt queue to ready status until got the valid
descriptor.

This is safe for polling mode drivers in Guest OS, the backend
vhost process will not post notification to interrupt vector for
PMD mode in Guest, but the interrupt vector still valid.

Change-Id: Icdf1e67f3c4e8da221843eb1383469ca1fba485c
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/365327
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-06-28 17:56:02 -04:00
..
linux vhost: add copy of virtio headers 2017-03-23 13:51:04 -07:00
rte_vhost vhost: don't start device before got valid descriptor 2017-06-28 17:56:02 -04:00
Makefile vhost: separated scsi layer from vhost.c 2017-05-25 18:30:44 -04:00
task.c scsi: Remove cb_event. It is no longer necessary. 2017-06-22 10:47:31 -04:00
task.h scsi: Remove cb_event. It is no longer necessary. 2017-06-22 10:47:31 -04:00
test_plan.md test: add vhost test plan 2017-06-21 19:55:13 -04:00
vhost_internal.h vhost: introduce spdk_vhost_vring_desc_to_iov 2017-06-07 14:28:54 -04:00
vhost_iommu.c vhost_iommu: handle opendir() failure 2017-06-15 13:51:54 -04:00
vhost_iommu.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
vhost_rpc.c vhost: don't expose backend structures outside backend implementation 2017-06-07 14:28:54 -04:00
vhost_scsi.c scsi: Remove cb_event. It is no longer necessary. 2017-06-22 10:47:31 -04:00
vhost.c Revert "vhost: Don't panic if the task count isn't 0" 2017-06-20 15:25:39 -04:00