+46
−0
include/linux/virtio_fs.h
0 → 100644
+22
−0
+1
−0
+3
−0
Loading
This patch set implements the virtiofs vfio-user device based on SPDK fsdev +
FUSE dispatcher.
Steps to run w/QEMU:
1. Run target:
build/bin/spdk_tgt -S /tmp/vfio-sockets
2. Create an fsdev and a corresponding vfu endpoint:
spdk_rpc.py fsdev_aio_create aio0 /tmp/vfio-test
spdk_rpc.py vfu_virtio_create_fs_endpoint vfufs.0 --fsdev-name aio0 \
--tag vfu_test --cpumask=0x1 --num-queues=8 --qsize=256 --packed-ring
3. Run the QEMU with:
-device vfio-user-pci,socket=/tmp/vfio-sockets/vfufs.0
Then inside the VM:
$ mkdir /tmp/zzz
$ modprobe -v virtiofs
$ mount -t virtiofs vfu_test /tmp/zzz
NOTE: as the implementation is based upon the nutanix/libvfio-user library
([1]) similar to vfu_virtio_blk and vfu_virtio_scsi. It requires an QEMU
version that supports the vfio-virtio-pci devices. More information can be
found in the libvfio-user README ([2]).
[1] https://github.com/nutanix/libvfio-user
[2] https://github.com/nutanix/libvfio-user/blob/master/README.md
Change-Id: I182119aced0640d6f9290802d91f93b27294f468
Signed-off-by:
Anton Nayshtut <anayshtut@nvidia.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24086
Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by:
Ben Walker <ben@nvidia.com>
Reviewed-by:
Jim Harris <jim.harris@samsung.com>
Community-CI: Mellanox Build Bot