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][PATCH]Provide 3 times continously writes check andunshad

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Subject: Re: [Xen-devel][PATCH]Provide 3 times continously writes check andunshadow the guest page
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Thu, 31 Jan 2008 15:47:19 +0000
Cc: "Xin, Xiaohui" <xiaohui.xin@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 31 Jan 2008 07:51:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D470B4E54465E3469E2ABBC5AFAC390F024D8F08@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>
References: <20080128094858.GA23373@xxxxxxxxxxxxxxxxxxxxx> <D470B4E54465E3469E2ABBC5AFAC390F024D8F08@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
Hi,

At 15:14 +0800 on 31 Jan (1201792446), Tian, Kevin wrote:
> I noted that existing early unshadow heuristic has one exception
> on top level page table. I guess the reason is to avoid incorrect
> unshadow on top level which implicates whole address space
> being unshadowed with heavy overhead to be re-shadowed later.
> Also if top level page table is pointed by current guest CR3, it's
> sure not an indicator for unshadow.

Actually that's a hangover from the original version of this heuristic,
where we special-cased the top-level shadows by zeroing out non-xen
entries, even if they couldn't be unshadowed.  The current version has
lost the special-case handling but not replaced it with anything.  Well
spotted - I'll fix it.

> But now I'm considering whether we can release that check on
> top level page table if it's not pinned by current guest CR3. Take
> Xiaohui's iperf case for example, she found incorrectly shadowed
> pages are mostly L2 pages on 32 and 32pae.

Interesting!

> I guess thrash results in Xiaohui's test results may come from
> such heuristics applied to leaf pages also which is too aggre-
> sive in same cases. But for top level pages, we may be able
> to catch up one heuristics then... :-)

The unshadow-after-N-writes heuristic is designed to catch pagetables
getting reused as data pages, and the existing early-unshadow heuristic
is designed to spot process teardown, so there's possibly value in
having both.

Cheers,

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]

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