This will enable us to make features dynamic, dependent on underlying backend device, and to remove usage of rte_vhost functions in vhost-blk implementation which will improve encapsulation and enable us to write tests that use vhost-blk functions directly. Dynamic features are used in vhost_blk, but backend structure is assumed to be static, so we had to call rte_vhost_driver_enable_features() after registering it with some features initially disabled. This patch moves feature fields to vdev structure where it can be set dynamically. Change-Id: Icd76bdd76a3d67ec74e0ac992d8da639beead593 Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/470460 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> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Community-CI: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
rte_vhost_compat.c | ||
vhost_blk.c | ||
vhost_internal.h | ||
vhost_nvme.c | ||
vhost_rpc.c | ||
vhost_scsi.c | ||
vhost.c |