Spdk/lib
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
..
bdev bdev: Remove direct calls to start/stop pollers 2017-06-22 10:47:31 -04:00
blob blobstore: fix declaration after statement 2017-06-27 13:57:06 -04:00
blobfs blobfs: Fix bug when reading unwritten region after truncate 2017-06-27 13:24:39 -04:00
conf log: Use SPDK_ERRLOG in lieu of fprintf(stderr 2017-05-09 11:28:28 -07:00
copy copy: Move asynchronous module init to event_copy 2017-06-20 13:46:37 -04:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk env: extend PCI address domain to 32 bits 2017-06-23 11:20:05 -04:00
event reactor: add pid to names for rings and mempools 2017-06-23 11:02:04 -04:00
ioat env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00
iscsi iscsi: remove pointless assert(task != NULL) 2017-06-27 14:01:59 -04:00
json json: Added support for 64 bit unsigned value converter in json 2017-06-06 12:00:25 -04:00
jsonrpc include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
log log: Add a print to stderr threshold 2017-06-20 13:34:47 -04:00
net net: fix declaration after statement 2017-06-27 13:57:06 -04:00
nvme nvme: use case-sensitive comparison for NQNs 2017-06-27 13:48:42 -04:00
nvmf nvmf: stub out Abort command support 2017-06-20 20:03:01 -04:00
rocksdb rocksdb: Add env/ as an include path 2017-06-22 19:50:25 -04:00
rpc rpc: Remove event framework and config file 2017-06-22 10:47:31 -04:00
scsi scsi: Remove cb_event. It is no longer necessary. 2017-06-22 10:47:31 -04:00
trace include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
ut_mock test: add wrap capability 2017-06-08 19:24:54 -04:00
util io_channel: add helper to get an I/O channel's thread 2017-06-13 11:37:13 -04:00
vhost vhost: don't start device before got valid descriptor 2017-06-28 17:56:02 -04:00
Makefile test: add wrap capability 2017-06-08 19:24:54 -04:00