RESEND: Inter-VM shared memory PCI device
commitec810f662a2944a3042426838c8715a016c855fc
authorCam Macdonell <cam@cs.ualberta.ca>
Tue, 27 Jul 2010 16:54:13 +0000 (27 10:54 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 11 Oct 2010 21:33:42 +0000 (11 16:33 -0500)
tree870c85952d051cec22c0092a2cd9ae04556ebabe
parent9367dbbe6d4169ae58f356166329f9a42d88d624
RESEND: Inter-VM shared memory PCI device

resend for bug fix related to removal of irqfd

Support an inter-vm shared memory device that maps a shared-memory object as a
PCI device in the guest.  This patch also supports interrupts between guest by
communicating over a unix domain socket.  This patch applies to the qemu-kvm
repository.

    -device ivshmem,size=<size in format accepted by -m>[,shm=<shm name>]

Interrupts are supported between multiple VMs by using a shared memory server
by using a chardev socket.

    -device ivshmem,size=<size in format accepted by -m>[,shm=<shm name>]
           [,chardev=<id>][,msi=on][,ioeventfd=on][,vectors=n][,role=peer|master]
    -chardev socket,path=<path>,id=<id>

The shared memory server, sample programs and init scripts are in a git repo here:

    www.gitorious.org/nahanni

Signed-off-by: Cam Macdonell <cam@cs.ualberta.ca>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 6cbf4c8c6416237e9c323661b87d60792a9d51af)
Makefile.target
hw/ivshmem.c [new file with mode: 0644]
qemu-char.c
qemu-char.h
qemu-doc.texi