aboutsummaryrefslogtreecommitdiff
path: root/qemu-doc.texi
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2016-03-15 19:34:19 +0100
committerMarkus Armbruster <armbru@redhat.com>2016-03-18 17:34:55 +0100
commitad4929384b64ffc9908915fd40cb80f455835d4a (patch)
tree908cfd1c16cd3da529e576eb394d52b2c28baa85 /qemu-doc.texi
parent3625c739eaf304fdf8ab3552ea6140cce07962a2 (diff)
qemu-doc: Fix ivshmem huge page example
Option parameter "share" is missing. Without it, you get a *private* mmap(), which defeats ivshmem's purpose pretty thoroughly ;) While there, switch to the conventional mountpoint of hugetlbfs /dev/hugepages. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1458066895-20632-5-git-send-email-armbru@redhat.com>
Diffstat (limited to 'qemu-doc.texi')
-rw-r--r--qemu-doc.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-doc.texi b/qemu-doc.texi
index bc9dd13cc9..65f3b29506 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -1311,7 +1311,7 @@ Instead of specifying the <shm size> using POSIX shm, you may specify
a memory backend that has hugepage support:
@example
-qemu-system-i386 -object memory-backend-file,size=1G,mem-path=/mnt/hugepages/my-shmem-file,id=mb1
+qemu-system-i386 -object memory-backend-file,size=1G,mem-path=/dev/hugepages/my-shmem-file,share,id=mb1
-device ivshmem,x-memdev=mb1
@end example