Received: from eggs.gnu.org ([2001:4830:134:3::10]:44582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad0n6-00041o-0H for qemu-devel@nongnu.org; Mon, 07 Mar 2016 14:26:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ad0n3-0003tV-3B for qemu-devel@nongnu.org; Mon, 07 Mar 2016 14:26:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad0n2-0003tH-V2 for qemu-devel@nongnu.org; Mon, 07 Mar 2016 14:26:01 -0500 From: Markus Armbruster Date: Mon, 7 Mar 2016 20:25:18 +0100 Message-Id: <1457378754-21649-7-git-send-email-armbru@redhat.com> In-Reply-To: <1457378754-21649-1-git-send-email-armbru@redhat.com> References: <1457378754-21649-1-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 06/42] qemu-doc: Fix ivshmem huge page example List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: claudio.fontana@huawei.com, cam@cs.ualberta.ca, mlureau@redhat.com, david.marchand@6wind.com, pbonzini@redhat.com 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 Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Paolo Bonzini --- qemu-doc.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-doc.texi b/qemu-doc.texi index bc9dd13..65f3b29 100644 --- a/qemu-doc.texi +++ b/qemu-doc.texi @@ -1311,7 +1311,7 @@ Instead of specifying the using POSIX sh= m, you may specify a memory backend that has hugepage support: =20 @example -qemu-system-i386 -object memory-backend-file,size=3D1G,mem-path=3D/mnt/h= ugepages/my-shmem-file,id=3Dmb1 +qemu-system-i386 -object memory-backend-file,size=3D1G,mem-path=3D/dev/h= ugepages/my-shmem-file,share,id=3Dmb1 -device ivshmem,x-memdev=3Dmb1 @end example =20 --=20 2.4.3