]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu-doc: Fix ivshmem huge page example
authorMarkus Armbruster <armbru@redhat.com>
Tue, 15 Mar 2016 18:34:19 +0000 (19:34 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 18 Mar 2016 16:34:55 +0000 (17:34 +0100)
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>

qemu-doc.texi

index bc9dd13cc913d2a8d2192a157fc8a911b14598ce..65f3b2950676a69950c69f0d1aeb5ce675af9189 100644 (file)
@@ -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