Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-devel

Re: [Xen-devel] Re: One potential issue of shadow fault emulation

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: One potential issue of shadow fault emulation
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 24 Dec 2007 20:03:15 +0000
Cc: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 24 Dec 2007 12:04:06 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C395AA89.1A2BC%Keir.Fraser@xxxxxxxxxxxx>
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: AchGWp8U3b8zRLJNEdyqVgAX8io7RQADWWk1
Thread-topic: [Xen-devel] Re: One potential issue of shadow fault emulation
User-agent: Microsoft-Entourage/11.3.6.070618


On 24/12/07 18:27, "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx> wrote:

>> That will disable the VMX TPR optimization too -- the p2m lookup needs
>> to return this magic page when the shadow propagation code looks it up
>> but not when other callers look it up.  Maybe the existing scheme for
>> mapping MMIO pages directly would do; mark the page as direct MMIO
>> instead of as RAM?  Otherwise at least one of the shadow propagation
>> code and the emulator needs to special-case the vlapic page.
> 
> There are quite a few users of gfn-to-mfn functionality and only one of them
> wants the magic page. So I think it'd be cleaner to push the vlapic check a
> bit deeper than just the shadow emulation callbacks.

I should have read your email a bit more closely -- fixing this via the
typed p2m table in 3.2 would be neat. Or even not including the magic page
in the p2m at all and explicitly special-casing inside the shadow
propagation code would be okay.

 -- Keir



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