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] Re: [Patch] the interface of invalidating qemu mapcache

To: "Li, Xin B" <xin.b.li@xxxxxxxxx>, "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [Patch] the interface of invalidating qemu mapcache
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Sat, 27 Jan 2007 09:02:55 +0000
Delivery-date: Sat, 27 Jan 2007 01:02:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <B30DA1341B0CFA4893EF8A36B40B5C5DB58CDE@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbhNpSgnLlsyleeR3aZurd/xO5mYAAmjw1QAHpYsZANUy+bAAbmp7kgAzBSt0AAA6R4dgADlbrAAByKhho=
Thread-topic: [Xen-devel] Re: [Patch] the interface of invalidating qemu mapcache
User-agent: Microsoft-Entourage/11.3.3.061214


On 26/1/07 7:33 pm, "Li, Xin B" <xin.b.li@xxxxxxxxx> wrote:

> Yes, it's much simpler if we just blow the entire mapcache each time we
> release memory to Xen or get some back from Xen.

For populating memory, qemu should probably refill the mapcache on demand.
It ought to be catching page faults on access to the mapcache anyway (easy,
just need a SIGSEGV handler). If it detects a mapcache access it should
first attempt to refill that mapcache entry and if that fails then do
something appropriate (crash the domain?).

 -- Keir



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