626ceb20fe
VHOST_USER_SET_VRING_CALL invalidates the previous file descriptor that SPDK may be using on a different thread. The new descriptor is stored inside rte_vhost internals and is queryable with rte_vhost APIs, but those APIs are too expensive to be called every tick or every time we need to use that fd. Hence, we will now stop the entire vhost session before processing SET_VRING_CALL msg and restart it right after. SPDK will query the most recent call descriptor on session start. We do not necessarily have to stop the device - just letting the session know that its callfd has changed would be enough. That's an area for future optimization. Change-Id: Idccf56fccd21ad0d3c2307eefee7bf35e350fec6 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447639 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
rte_vhost | ||
Makefile | ||
rte_vhost_compat.c | ||
vhost_blk.c | ||
vhost_internal.h | ||
vhost_nvme.c | ||
vhost_rpc.c | ||
vhost_scsi.c | ||
vhost.c |