qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] doc: document ivshmem & hugepages
@ 2015-10-07 14:32 marcandre.lureau
  2015-10-07 15:12 ` Eric Blake
  0 siblings, 1 reply; 2+ messages in thread
From: marcandre.lureau @ 2015-10-07 14:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau, p.fedin

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Document and give some examples of hugepages support with ivshmem device
and server.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 qemu-doc.texi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/qemu-doc.texi b/qemu-doc.texi
index afa2263..b15c14c 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -1293,6 +1293,19 @@ copy the shared memory on migration to the destination host.  With
 With the @option{peer} case, the device should be detached and then reattached
 after migration using the PCI hotplug support.
 
+@subsubsection ivshmem & hugepages
+
+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,id=mb1
+                 -device ivshmem,memdev=mb1
+@end example
+
+ivshmem-server also supports hugepages mount points with the
+@option{-m} memory path argument.
+
 @node direct_linux_boot
 @section Direct Linux Boot
 
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] doc: document ivshmem & hugepages
  2015-10-07 14:32 [Qemu-devel] [PATCH] doc: document ivshmem & hugepages marcandre.lureau
@ 2015-10-07 15:12 ` Eric Blake
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Blake @ 2015-10-07 15:12 UTC (permalink / raw)
  To: marcandre.lureau, qemu-devel; +Cc: p.fedin

[-- Attachment #1: Type: text/plain, Size: 1258 bytes --]

On 10/07/2015 08:32 AM, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
> 
> Document and give some examples of hugepages support with ivshmem device
> and server.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>  qemu-doc.texi | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/qemu-doc.texi b/qemu-doc.texi
> index afa2263..b15c14c 100644
> --- a/qemu-doc.texi
> +++ b/qemu-doc.texi
> @@ -1293,6 +1293,19 @@ copy the shared memory on migration to the destination host.  With
>  With the @option{peer} case, the device should be detached and then reattached
>  after migration using the PCI hotplug support.
>  
> +@subsubsection ivshmem & hugepages

s/&/and/ (documentation looks a bit too casual if you don't spell out
conjunctions)

> +
> +Instead of specifying the <shm size> using POSIX shm, you may specify
> +a memory backend, that has hugepage support:

s/backend,/backend/

With those two fixes, the grammar is:
Reviewed-by: Eric Blake <eblake@redhat.com>

I don't know if it is technically accurate, though.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-07 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07 14:32 [Qemu-devel] [PATCH] doc: document ivshmem & hugepages marcandre.lureau
2015-10-07 15:12 ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).