From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Weil Subject: Re: [Qemu-devel] [PATCH v8 5/5] RESEND: Inter-VM shared memory PCI device Date: Wed, 11 Aug 2010 10:35:10 +0200 Message-ID: <4C6260BE.6010004@mail.berlios.de> References: <1280189461-1929-6-git-send-email-cam@cs.ualberta.ca> <1280249653-13370-1-git-send-email-cam@cs.ualberta.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, Anthony Liguori To: Cam Macdonell Return-path: Received: from moutng.kundenserver.de ([212.227.17.9]:61829 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753800Ab0HKIfO (ORCPT ); Wed, 11 Aug 2010 04:35:14 -0400 In-Reply-To: <1280249653-13370-1-git-send-email-cam@cs.ualberta.ca> Sender: kvm-owner@vger.kernel.org List-ID: Am 27.07.2010 18:54, schrieb Cam Macdonell: > 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 > --- > Makefile.target | 3 + > hw/ivshmem.c | 828 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > qemu-char.c | 6 + > qemu-char.h | 3 + > qemu-doc.texi | 43 +++ > 5 files changed, 883 insertions(+), 0 deletions(-) > create mode 100644 hw/ivshmem.c > Hi, hw/ivshmem.c breaks compilation on 32 bit hosts, for targets without kvm support and for win32 environments. I sent patches to qemu-devel which fix the first two problems. The win32 problems (missing mmap, maybe more) remain. Could you please fix them? Regards Stefan From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60659 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oj6oP-0001bp-6u for qemu-devel@nongnu.org; Wed, 11 Aug 2010 04:37:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oj6oK-00075b-0I for qemu-devel@nongnu.org; Wed, 11 Aug 2010 04:37:23 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:53858) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oj6oJ-00075I-KO for qemu-devel@nongnu.org; Wed, 11 Aug 2010 04:37:19 -0400 Message-ID: <4C6260BE.6010004@mail.berlios.de> Date: Wed, 11 Aug 2010 10:35:10 +0200 From: Stefan Weil MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v8 5/5] RESEND: Inter-VM shared memory PCI device References: <1280189461-1929-6-git-send-email-cam@cs.ualberta.ca> <1280249653-13370-1-git-send-email-cam@cs.ualberta.ca> In-Reply-To: <1280249653-13370-1-git-send-email-cam@cs.ualberta.ca> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cam Macdonell Cc: Anthony Liguori , qemu-devel@nongnu.org, kvm@vger.kernel.org Am 27.07.2010 18:54, schrieb Cam Macdonell: > 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 > --- > Makefile.target | 3 + > hw/ivshmem.c | 828 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > qemu-char.c | 6 + > qemu-char.h | 3 + > qemu-doc.texi | 43 +++ > 5 files changed, 883 insertions(+), 0 deletions(-) > create mode 100644 hw/ivshmem.c > Hi, hw/ivshmem.c breaks compilation on 32 bit hosts, for targets without kvm support and for win32 environments. I sent patches to qemu-devel which fix the first two problems. The win32 problems (missing mmap, maybe more) remain. Could you please fix them? Regards Stefan