Generic vhost-blk layer is responsible for opening the bdev attached to the vhost controller. This patch adds vhost_user_bdev_event_cb() that is called for vhost_user backend. This function will be replaced with a callback to particular virtio-blk transport. Having this piped through to the transports, allows to adjust their behavior upon bdev events. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Id73f5131b6e57f0354e970d0bce92716ec69985b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12132 Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
rte_vhost_user.c | ||
spdk_vhost.map | ||
vhost_blk.c | ||
vhost_internal.h | ||
vhost_rpc.c | ||
vhost_scsi.c | ||
vhost.c |