Spdk/lib/vhost
Li Feng bcc28e05d1 vhost_blk: speed up the vhost device boot
When starting qemu with vhost-user-blk multiqueue(set num-queues to
more than 1), the vhost device will be started/stopped many times
(related to the queue num), as the vhost-user backend doesn't know the
exact number of queues used for this device.
The target have to stop and start the device once got a valid IO queue.

When stoping and starting the vhost device, the backend bdev io device
will be deleted and created repeatly.

If the backend bdev is a distribution system, the cost is large as the
network RTT.

In this patch, add a dummy_io_channel to hold a reference to the io
device, so that the io device will not be deleted.

Change-Id: I5737248ec52bee06342ff0873bb89fd0a51665c2
Signed-off-by: Li Feng <fengli@smartx.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2020
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2020-05-13 07:46:29 +00:00
..
Makefile vhost: add packed ring support 2020-04-15 03:55:59 +00:00
rte_vhost_compat.c memory.h: move to public headers 2020-03-19 08:50:45 +00:00
vhost_blk.c vhost_blk: speed up the vhost device boot 2020-05-13 07:46:29 +00:00
vhost_internal.h vhost: inline vhost_vring_desc_is_wr() 2020-04-23 07:28:24 +00:00
vhost_nvme.c vhost/nvme: fix the compliation issue with internal vhost library 2020-04-24 07:08:17 +00:00
vhost_rpc.c vhost: add packed ring support 2020-04-15 03:55:59 +00:00
vhost_scsi.c lib/vhost: Don't dereference svdev->name in dev_remove. 2020-04-29 06:38:53 +00:00
vhost.c vhost: inline vhost_vring_desc_is_wr() 2020-04-23 07:28:24 +00:00