From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afto6-0006cF-HG for qemu-devel@nongnu.org; Tue, 15 Mar 2016 14:35:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afto4-0001lT-Ev for qemu-devel@nongnu.org; Tue, 15 Mar 2016 14:35:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afto4-0001l6-99 for qemu-devel@nongnu.org; Tue, 15 Mar 2016 14:35:00 -0400 From: Markus Armbruster Date: Tue, 15 Mar 2016 19:34:19 +0100 Message-Id: <1458066895-20632-5-git-send-email-armbru@redhat.com> In-Reply-To: <1458066895-20632-1-git-send-email-armbru@redhat.com> References: <1458066895-20632-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 v3 04/40] 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