From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] Inter-VM shared memory PCI device Date: Mon, 08 Mar 2010 11:56:03 +0200 Message-ID: <4B94C9B3.1060904@redhat.com> References: <1267833161-25267-1-git-send-email-cam@cs.ualberta.ca> <1267833161-25267-2-git-send-email-cam@cs.ualberta.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org To: Cam Macdonell Return-path: Received: from mx1.redhat.com ([209.132.183.28]:6019 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753153Ab0CHJ4G (ORCPT ); Mon, 8 Mar 2010 04:56:06 -0500 In-Reply-To: <1267833161-25267-2-git-send-email-cam@cs.ualberta.ca> Sender: kvm-owner@vger.kernel.org List-ID: 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