From ea5a050341031dff67c3d193e0e773df7d7ba77a Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 12 Aug 2021 12:42:22 +0000 Subject: [PATCH] docs: Improve vfio-user documentation Change the block size to the standard 512 byte sector size to that disk images can be used (since their partition tables will be specified in terms of 512 byte sectors.) Also remove the hugepages=on option from the command line as it is not necessary. Signed-off-by: Rob Bradford --- docs/vfio-user.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/vfio-user.md b/docs/vfio-user.md index 78ee08376..9136442d7 100644 --- a/docs/vfio-user.md +++ b/docs/vfio-user.md @@ -45,7 +45,6 @@ Use SPDK: https://github.com/spdk/spdk Compile with `./configure --with-vfio-user` - Create an NVMe controller listening on a vfio-user socket with a simple block device: ```sh @@ -59,7 +58,7 @@ sleep 2 sudo ./scripts/rpc.py nvmf_create_transport -t VFIOUSER sudo rm -rf /tmp/nvme-vfio-user sudo mkdir -p /tmp/nvme-vfio-user -sudo ./scripts/rpc.py bdev_aio_create ~/images/test-disk.raw test 4096 +sudo ./scripts/rpc.py bdev_aio_create ~/images/test-disk.raw test 512 sudo ./scripts/rpc.py nvmf_create_subsystem nqn.2019-07.io.spdk:cnode -a -s test sudo ./scripts/rpc.py nvmf_subsystem_add_ns nqn.2019-07.io.spdk:cnode test sudo ./scripts/rpc.py nvmf_subsystem_add_listener nqn.2019-07.io.spdk:cnode -t VFIOUSER -a /tmp/nvme-vfio-user -s 0 @@ -70,7 +69,7 @@ Start Cloud Hypervisor: ```sh target/debug/cloud-hypervisor \ - --memory size=1G,shared=on,hugepages=on \ + --memory size=1G,shared=on \ --disk path=~/images/focal-server-cloudimg-amd64.raw \ --kernel ~/src/linux/vmlinux \ --cmdline "root=/dev/vda1 console=hvc0" \