From 32adf9fa8a008e7f06eeb0911f597def987ff5e1 Mon Sep 17 00:00:00 2001 From: Cam Macdonell Date: Tue, 27 Jul 2010 10:54:13 -0600 Subject: 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=[,shm=] Interrupts are supported between multiple VMs by using a shared memory server by using a chardev socket. -device ivshmem,size=[,shm=] [,chardev=][,msi=on][,ioeventfd=on][,vectors=n][,role=peer|master] -chardev socket,path=,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 Signed-off-by: Anthony Liguori --- qemu-char.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qemu-char.c') diff --git a/qemu-char.c b/qemu-char.c index 9b69d928ef..6a3952ccdf 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2087,6 +2087,12 @@ static void tcp_chr_read(void *opaque) } } +CharDriverState *qemu_chr_open_eventfd(int eventfd){ + + return qemu_chr_open_fd(eventfd, eventfd); + +} + static void tcp_chr_connect(void *opaque) { CharDriverState *chr = opaque; -- cgit v1.2.3