Here we use vfu_tgt library and emulate a virtio-scsi device as the next use case. Compared with vhost-user-scsi, the packed ring is supported with this patch. Example usage method: 1. scripts/rpc.py bdev_malloc_create -b malloc0 $((512)) 512 2. scripts/rpc.py vfu_virtio_create_scsi_endpoint vfu.0 --cpumask 0x1 --num-io-queues=4 \ --qsize=128 --packed-ring 3. scripts/rpc.py vfu_virtio_scsi_add_target vfu.0 --scsi-target-num=0 --bdev-name malloc0 4. Start QEMU with '-device vfio-user-pci,socket=/spdk/vfu.0' Change-Id: I8f35d1d21aaec34844d6ddb59dc997a64f141179 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12673 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
nvme.libtest.mk | ||
spdk_blank.map | ||
spdk.app_cxx.mk | ||
spdk.app_vars.mk | ||
spdk.app.mk | ||
spdk.common.mk | ||
spdk.deps.mk | ||
spdk.fio.mk | ||
spdk.lib_deps.mk | ||
spdk.lib.mk | ||
spdk.mock.unittest.mk | ||
spdk.modules.mk | ||
spdk.nvmecli.mk | ||
spdk.subdirs.mk | ||
spdk.unittest.mk |