From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NoZh3-0007R6-4I for qemu-devel@nongnu.org; Mon, 08 Mar 2010 04:56:09 -0500 Received: from [199.232.76.173] (port=35334 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NoZh2-0007Qe-6J for qemu-devel@nongnu.org; Mon, 08 Mar 2010 04:56:08 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NoZh0-0005K6-UT for qemu-devel@nongnu.org; Mon, 08 Mar 2010 04:56:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62190) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NoZh0-0005K0-Hu for qemu-devel@nongnu.org; Mon, 08 Mar 2010 04:56:06 -0500 Message-ID: <4B94C9B3.1060904@redhat.com> Date: Mon, 08 Mar 2010 11:56:03 +0200 From: Avi Kivity MIME-Version: 1.0 References: <1267833161-25267-1-git-send-email-cam@cs.ualberta.ca> <1267833161-25267-2-git-send-email-cam@cs.ualberta.ca> In-Reply-To: <1267833161-25267-2-git-send-email-cam@cs.ualberta.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] Inter-VM shared memory PCI device List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cam Macdonell Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org On 03/06/2010 01:52 AM, Cam Macdonell wrote: > 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. > > This device now creates a qemu character device and sends 1-bytes messages to > trigger interrupts. Writes are trigger by writing to the "Doorbell" register > on the shared memory PCI device. The lower 8-bits of the value written to this > register are sent as the 1-byte message so different meanings of interrupts can > be supported. > > Interrupts are supported between multiple VMs by using a shared memory server > > -ivshmem,[unix:][file] > > Interrupts can also be used between host and guest as well by implementing a > listener on the host that talks to shared memory server. The shared memory > server passes file descriptors for the shared memory object and eventfds (our > interrupt mechanism) to the respective qemu instances. > > Can you provide a spec that describes the device? This would be useful for maintaining the code, writing guest drivers, and as a framework for review. -- error compiling committee.c: too many arguments to function