aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2024-05-23 10:19:58 -0700
committerGitHub <noreply@github.com>2024-05-23 18:19:58 +0100
commitc4ce707207781ddb1c4e1d861b3f0867a4437d4e (patch)
treec56e54da25f82b2e65036cec11ec8c861c8c72bb
parentbedaf99895a550ce9a3d3393bbcaf67f7e59f854 (diff)
downloadlibvfio-user-c4ce707207781ddb1c4e1d861b3f0867a4437d4e.zip
libvfio-user-c4ce707207781ddb1c4e1d861b3f0867a4437d4e.tar.gz
libvfio-user-c4ce707207781ddb1c4e1d861b3f0867a4437d4e.tar.bz2
docs/qemu: add missing -numa argument (#799)
Add the missing argument to link the backing memory with the guest's memory; this results in two separate 2G allocations - harmless in this case, but would break usage for SPDK. Signed-off-by: John Levon <john.levon@nutanix.com>
-rw-r--r--docs/qemu.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/qemu.md b/docs/qemu.md
index e17e33a..0ff4dcd 100644
--- a/docs/qemu.md
+++ b/docs/qemu.md
@@ -69,6 +69,7 @@ $ imgpath=/path/to/bionic-server-cloudimg-amd64.img
$ sudo ~/src/build/qemu-system-x86_64 \
-machine accel=kvm,type=q35 -cpu host -m 2G \
-mem-prealloc -object memory-backend-file,id=ram-node0,prealloc=yes,mem-path=/dev/hugepages/gpio,share=yes,size=2G \
+ -numa node,memdev=ram-node0 \
-nographic \
-device virtio-net-pci,netdev=net0 \
-netdev user,id=net0,hostfwd=tcp::2222-:22 \