From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: inter-VM communication? Date: Thu, 30 Nov 2006 12:21:31 +0200 Message-ID: <456EB0AB.30508@qumranet.com> References: <64F9B87B6B770947A9F8391472E03216094CB08C@ehost011-8.exch011.intermedia.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: To: Jun Koi In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Jun Koi wrote: > On 11/30/06, Dor Laor wrote: > >>> Hi, >>> >>> Do we have any inter-VM communication technique in KVM (something for >>> example like event-channel in Xen) ? >>> >>> Thanks, >>> Jun >>> >> Currently there is full isolation of the guests. >> Such mechanism would not be complicated to add since we anyway map >> memory from user space & inject interrupt from there also. >> Do you have any specific interest in inter VM channel? >> > > I want to exchange some data between a VM and hypervisor. One solution > is to map some memory of that VM (from hypervisor), and read/write > data thru that memory area. However, I need to a mechanism to notify > the other partner when data is ready to read/write. > > Without any inter-VM communication mechanism, I dont see any clean way > to achieve this. Any idea? > Write a pci device for qemu to do what you want. The pci device can communicate through a unix domain socket, shared memory, or any other ipc mechanism with any other process on the host (including other virtual machines). Guest->host communication is performed by writing the device's mmio registers. Host->guest communications are done by raising a virtual interrupt. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV