From 17ad86afe3b837b59fbebaf2c702b3228b955b93 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 7 Aug 2020 12:22:51 +0000 Subject: [PATCH] docs: use shared memory with vhost-user Not doing this is an error. Signed-off-by: Alyssa Ross --- docs/vhost-user-blk-testing.md | 2 +- docs/vhost-user-net-testing.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/vhost-user-blk-testing.md b/docs/vhost-user-blk-testing.md index 6d496d39d..c56bed8fb 100644 --- a/docs/vhost-user-blk-testing.md +++ b/docs/vhost-user-blk-testing.md @@ -73,7 +73,7 @@ VMs run in client mode. They connect to the socket created by the `dpdkvhostuser # From the test terminal. We need to create one vhost-user-blk device for the --disk. ./cloud-hypervisor \ --cpus boot=4 \ - --memory size=1024M,hugepages=on \ + --memory size=1024M,hugepages=on,shared=true \ --kernel linux/arch/x86/boot/compressed/vmlinux.bin \ --cmdline "console=ttyS0 root=/dev/vda1 rw iommu=off" \ --disk path=images/focal-server-cloudimg-amd64.raw vhost_user=true,socket=/var/tmp/vhost.1,num_queues=4,queue_size=128 \ diff --git a/docs/vhost-user-net-testing.md b/docs/vhost-user-net-testing.md index 704fd61d8..331e60801 100644 --- a/docs/vhost-user-net-testing.md +++ b/docs/vhost-user-net-testing.md @@ -76,7 +76,7 @@ VMs run in client mode. They connect to the socket created by the `dpdkvhostuser # From one terminal. We need to give the cloud-hypervisor binary the NET_ADMIN capabilities for it to set TAP interfaces up on the host. ./cloud-hypervisor \ --cpus boot=2 \ - --memory size=512M,hugepages=on \ + --memory size=512M,hugepages=on,shared=true \ --kernel vmlinux \ --cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw" \ --disk path=focal-server-cloudimg-amd64.raw \ @@ -85,7 +85,7 @@ VMs run in client mode. They connect to the socket created by the `dpdkvhostuser # From another terminal. We need to give the cloud-hypervisor binary the NET_ADMIN capabilities for it to set TAP interfaces up on the host. ./cloud-hypervisor \ --cpus boot=2 \ - --memory size=512M,hugepages=on \ + --memory size=512M,hugepages=on,shared=true \ --kernel vmlinux \ --cmdline "console=ttyS0 console=hvc0 root=/dev/vda1 rw" \ --disk path=focal-server-cloudimg-amd64.raw \