WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] sharing memory between qemu and domu without grant table

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] sharing memory between qemu and domu without grant tables or vmexits...
From: Keir Fraser <keir@xxxxxxx>
Date: Sun, 17 Oct 2010 08:36:56 +0100
Cc:
Delivery-date: Sun, 17 Oct 2010 00:37:58 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:user-agent:date :subject:from:to:message-id:thread-topic:thread-index:in-reply-to :mime-version:content-type:content-transfer-encoding; bh=xfSYuMKqPTfxfHgzZ8zOf+s4Evn4VwMLtmFzt8C3ImU=; b=YQI9OP+3hHD5PZtNgbBps00pA7wdaGpOnBX5UBp/wu9x1YjxQuo6EpJRz8yZbjhTIg DO+Ik2OMM3p0vtdAR33ZPpXIAbD9QaOSbgYxsZunXZpr7tP5ByTbx08e6erKVlA70vT8 tDvaZ72MOzil91hV5zKnBBhMz1c3Yc4392Z2M=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=EZ+qmWNW5AmDSuLrPNmRmcqU3E2DefQSjVPdOZdMSA1sSdLybPfjupWt1gjgEbo8EA 2aJnzRPhdHHUJVmup5TbEflVuGDrbzbIEVgtbaBSOwvJaQjS9vsCX0LQrOHzP1YK3X6U 0Phb3E01vGI9xqFYSOSlN4WESvMBGt0IXdMS4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D01B1FE36@trantor>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acttu/Egb94n0I/5RaamETF7xAIFyAAEiHm1
Thread-topic: [Xen-devel] sharing memory between qemu and domu without grant tables or vmexits...
User-agent: Microsoft-Entourage/12.26.0.100708
On 17/10/2010 06:27, "James Harper" <james.harper@xxxxxxxxxxxxxxxx> wrote:

> Is it possible to share a page of memory between qemu in dom0 and domu
> without using grant tables and without domu access to that page causing
> a vmexit?

Pick a reserved page in guest's physical memory map. Communicate that
address to both domU and qemu somehow (e.g., one might pick it and
communicate it to the other; or it may be a statically assigned well-known
address; or whatever). Qemu can map that page, as obviously can the guest.

To get that reserved page, you could: (1) pick an unused frame slot in the
hole below 4GB (e.g., between LAPIC and IOAPIC mappings) allocate a page
there from qemu, or hvmloader, or domU, or...; or (2) you could have hvm
domain builder, or hvmloader, reserve a page from the guest's regular RAM
space, and update guest e820 appropiately to indicate page is reserved.
Communicate that address as necessary, and away you go.

 -- Keir

> To set up a custom kernel debug dll under windows I need to load very
> early, much earlier than my PV drivers. To have any hope of usefully
> increasing the speed over serial port debugging I need to be able to
> transfer data faster than 1-byte-per-vmexit...
> 
> Thanks
> 
> James
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel