From 6cbf4c8c6416237e9c323661b87d60792a9d51af 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 9b69d92..6a3952c 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.1