From a75eb03b9fca3af291ec2c433ddda06121ae927d Mon Sep 17 00:00:00 2001 From: David Marchand Date: Mon, 8 Sep 2014 11:17:48 +0200 Subject: contrib: add ivshmem client and server When using ivshmem devices, notifications between guests can be sent as interrupts using a ivshmem-server (typical use described in documentation). The client is provided as a debug tool. Signed-off-by: Olivier Matz Signed-off-by: David Marchand [fix a valgrind warning, option and server_close() segvs, extra server headers includes, getopt() return type, out-of-tree build, use qemu event_notifier instead of eventfd, fix x86/osx warnings - Marc-André] Signed-off-by: Marc-André Lureau --- qemu-doc.texi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'qemu-doc.texi') diff --git a/qemu-doc.texi b/qemu-doc.texi index 5b81aa052d..afa226303b 100644 --- a/qemu-doc.texi +++ b/qemu-doc.texi @@ -1266,9 +1266,13 @@ is qemu.git/contrib/ivshmem-server. An example syntax when using the shared memory server is: @example -qemu-system-i386 -device ivshmem,size=[,chardev=] - [,msi=on][,ioeventfd=on][,vectors=n][,role=peer|master] -qemu-system-i386 -chardev socket,path=,id= +# First start the ivshmem server once and for all +ivshmem-server -p -S -m -l -n + +# Then start your qemu instances with matching arguments +qemu-system-i386 -device ivshmem,size=,vectors=,chardev= + [,msi=on][,ioeventfd=on][,role=peer|master] + -chardev socket,path=,id= @end example When using the server, the guest will be assigned a VM ID (>=0) that allows guests -- cgit v1.2.3-55-g7522