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] unshadow the page table page which are used asdat

To: "Xin, Xiaohui" <xiaohui.xin@xxxxxxxxx>, "Tim Deegan" <Tim.Deegan@xxxxxxxxxx>
Subject: RE: [Xen-devel][PATCH] unshadow the page table page which are used asdata page
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Mon, 10 Dec 2007 11:05:40 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Delivery-date: Sun, 09 Dec 2007 19:06:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <9A1462408D6D394C8A7A812E98F00A4D0256F6DD@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: <9A1462408D6D394C8A7A812E98F00A4D0251FEBC@xxxxxxxxxxxxxxxxxxxxxxxxxxxx><20071205101016.GA7121@xxxxxxxxxxxxxxxxxxxxx><9A1462408D6D394C8A7A812E98F00A4D0256F408@xxxxxxxxxxxxxxxxxxxxxxxxxxxx><20071207143941.GA5628@xxxxxxxxxxxxxxxxxxxxx> <9A1462408D6D394C8A7A812E98F00A4D0256F6DD@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acg43yXSAXB2FdVQTkeqzj8S82LPowB9s36gAACiouA=
Thread-topic: [Xen-devel][PATCH] unshadow the page table page which are used asdata page
>From: Xin, Xiaohui
>Sent: 2007年12月10日 10:48
>
>Hi, Tim
>Heard from Kevin that the Linux kernel writes swap cache 
>entries in swap cache pages. And the swap cache entries 
>contains only type and offset which seems not contains valid 
>mfn at all. Does the patch will hurt this? Is there any other 
>situations that guest write NON-PTE entries in the page tables?

It seems that unshadow has no correctness issue, and only
hurt the performance when unshadowed page is used in page
walk path again next time. At that time, shadow fault path will 
re-walk guest page table to find updated value.

In this context, if windows programs Non-PTE-like values in PTE
like swap usage in Linux, by clearing the present bit, the
performance to inject guest page fault for those special values
are hurt a bit. The difference is on a fast-path N/P check and a
full-path N/P check.

So we need balance the gain and loss here. Tim, how much
difference per your experience for a fast-path N/P? If not much,
maybe it's worthy doing it then. :-)

Thanks,
Kevin

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