Spdk/lib/vhost
Darek Stojaczyk d010fe2602 vhost: allow multiple sessions per device
With all the patches in place, we can finally
enable having more than one simultaneous sessions
to a single vhost device.

This patch adds a unique id to the session structure,
similar to the one in a vhost device and also fills in
the implementation holes in foreach_session().

Vhost-NVMe can support only one session per device
and now has an additional check that prevents it from
starting more than one at a time.

Vhost-SCSI also has the same check now since it needs
additional work on the lcore assignment policy. The
check will be removed once the required work is done.

Change-Id: I13a32c7a0eae808e9bec63a7b8c15ec0bc2e36ed
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/439324
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2019-01-24 17:37:03 +00:00
..
rte_vhost vhost: do not close a closed connfd 2019-01-16 05:11:58 +00:00
Makefile vhost_user_nvme: add vhost user nvme target to SPDK 2018-04-03 15:01:24 -04:00
vhost_blk.c vhost: allow multiple sessions per device 2019-01-24 17:37:03 +00:00
vhost_internal.h vhost: allow multiple sessions per device 2019-01-24 17:37:03 +00:00
vhost_nvme.c vhost: allow multiple sessions per device 2019-01-24 17:37:03 +00:00
vhost_rpc.c vhost_nvme/rpc: free partially decoded request 2019-01-22 01:09:59 +00:00
vhost_scsi.c vhost: allow multiple sessions per device 2019-01-24 17:37:03 +00:00
vhost.c vhost: allow multiple sessions per device 2019-01-24 17:37:03 +00:00