Spdk/python/spdk/rpc
Changpeng Liu 5004d7b8e8 module/vfu_device: add virtio-scsi emulation
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>
2022-09-29 19:42:56 +00:00
..
__init__.py lib/vfu_tgt: add library for PCI device emulation 2022-09-29 19:42:56 +00:00
accel.py accel: Refer to plugins as 'modules' instead of 'engines' 2022-09-21 08:17:48 +00:00
app.py python: remove unneeded deprecated_alias imports 2022-06-03 16:06:33 +00:00
bdev.py ftl: I/O statistics 2022-09-20 19:24:26 +00:00
blobfs.py scripts: move python modules to python directory 2022-04-05 14:40:47 +00:00
client.py scripts: move python modules to python directory 2022-04-05 14:40:47 +00:00
cmd_parser.py scripts: move python modules to python directory 2022-04-05 14:40:47 +00:00
dsa.py accel: Refer to plugins as 'modules' instead of 'engines' 2022-09-21 08:17:48 +00:00
env_dpdk.py scripts: move python modules to python directory 2022-04-05 14:40:47 +00:00
helpers.py scripts: move python modules to python directory 2022-04-05 14:40:47 +00:00
iaa.py accel: Refer to plugins as 'modules' instead of 'engines' 2022-09-21 08:17:48 +00:00
ioat.py accel: Refer to plugins as 'modules' instead of 'engines' 2022-09-21 08:17:48 +00:00
iscsi.py python: remove unneeded deprecated_alias imports 2022-06-03 16:06:33 +00:00
log.py python: remove unneeded deprecated_alias imports 2022-06-03 16:06:33 +00:00
lvol.py blobstore: add RPC for growing blobstore 2022-06-28 17:55:43 +00:00
nbd.py python: remove unneeded deprecated_alias imports 2022-06-03 16:06:33 +00:00
notify.py python: remove unneeded deprecated_alias imports 2022-06-03 16:06:33 +00:00
nvme.py python: remove unneeded deprecated_alias imports 2022-06-03 16:06:33 +00:00
nvmf.py python: remove unneeded deprecated_alias imports 2022-06-03 16:06:33 +00:00
pmem.py python: remove unneeded deprecated_alias imports 2022-06-03 16:06:33 +00:00
sock.py sock/ssl: Add psk_key and psk_identity options to spdk_sock_impl_opts 2022-08-15 16:52:28 +00:00
subsystem.py python: remove unneeded deprecated_alias imports 2022-06-03 16:06:33 +00:00
trace.py python: remove unneeded deprecated_alias imports 2022-06-03 16:06:33 +00:00
vfio_user.py module/vfu_device: add virtio-scsi emulation 2022-09-29 19:42:56 +00:00
vhost.py python: remove unneeded deprecated_alias imports 2022-06-03 16:06:33 +00:00
vmd.py vmd: method for forcing a rescan 2022-09-01 08:48:32 +00:00