Spdk/lib/vhost
Dariusz Stojaczyk 211604b76c vhost: don't allow deleting vdev that has still open socket
Make use of new rte_vhost API.
vdev->vid is now set via new/destroy_connection(),
new/destroy_device sets vdev->lcore.
lcore != -1 implies vid != -1, hence some lcore checks have been
replaced with vid checks.

Change-Id: I08f4932ee7e6aeb3eba4874f2e94ad407764d9c2
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/372075
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-09-05 15:19:16 -04:00
..
rte_vhost rte_vhost: added user callbacks for socket open/close 2017-09-01 15:34:24 -04:00
Makefile env: Automatically register new memory with the IOMMU 2017-09-01 15:25:24 -04:00
test_plan.md test/vhost: Update test plan for vhost 2017-07-25 15:48:46 -04:00
vhost_blk.c vhost: don't allow deleting vdev that has still open socket 2017-09-05 15:19:16 -04:00
vhost_internal.h vhost: removed parse_core_mask function from public API 2017-08-25 12:37:28 -04:00
vhost_rpc.c log: remove uses of SPDK_TRACE_DEBUG 2017-08-29 15:07:13 -04:00
vhost_scsi.c vhost: don't allow deleting vdev that has still open socket 2017-09-05 15:19:16 -04:00
vhost.c vhost: don't allow deleting vdev that has still open socket 2017-09-05 15:19:16 -04:00