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

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

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] Re: One potential issue of shadow fault emulation
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Mon, 24 Dec 2007 17:57:10 +0000
Cc: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 24 Dec 2007 10:11:33 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C391E68B.1A26A%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>
References: <20071221172142.GB4805@xxxxxxxxxxxxxxxxxxxxx> <C391E68B.1A26A%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
At 21:54 +0000 on 21 Dec (1198274059), Keir Fraser wrote:
> Probably gfn_to_mfn() should explicitly check for vmx_apic_access_mfn and
> return INVALID_MFN instead. That will fix all emulation routines by causing
> them to take their mmio path (or bail if they don't have them) which is the
> correct behaviour for this case.

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.

Cheers,

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems.
[Company #5334508: XenSource UK Ltd, reg'd c/o EC2Y 5EB, UK.]

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