mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
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 <robert.bradford@intel.com>
This commit is contained in:
parent
0bad764462
commit
ea5a050341
@ -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" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user