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] write page table in user mode

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, "Su, Disheng" <disheng.su@xxxxxxxxx>, "Tim Deegan" <Tim.Deegan@xxxxxxxxxx>
Subject: RE: [Xen-devel] write page table in user mode
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Sat, 2 Feb 2008 22:08:33 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 02 Feb 2008 06:09:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C3C9F6E0.13312%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: <FF386CB4AE0E4648B0A96060EC00F36C78F589@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C3C9F6E0.13312%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AchlAD52qky2ju36Tga/OqdSA6cQoQAhnMnzAAblEqA=
Thread-topic: [Xen-devel] write page table in user mode
Just now I made a conclusion that no such unshadow heuristic is
hit after checking my archived perfc counter logs, since there's no 
item like "unshadow by user-level access". But immediately I
found this is mixed into "emulator fails", and there does be dozens
of count for Linux KB and several for one Windows benchmark (not
sure the detail now).

Whatever the count may be, even one user page slipped out of
unshadow may hurt performance a lot if access to that page is
frequent...

Maybe we can disable such heuristics only when observing guest 
clear CR0.wp actively? Or later out-of-sync can also help here.

BTW, it's worthy of adding a seperate perfc counter for user-level 
access caused unshadow. :-)

Thanks,
kevin

>From: Keir Fraser
>Sent: 2008年2月2日 18:31
>
>It should be safe, but I don't know how much it would affect 
>performance (it
>depends on how much we are actually relying on it as an unshadowing
>heuristic).
>
> -- Keir
>
>On 1/2/08 18:28, "Su, Disheng" <disheng.su@xxxxxxxxx> wrote:
>
>> Hi,
>> I found vmware workstation 5 in xen will write page table in
>> user mode. I don't know the rational behind this...
>> XEN doesn't emulate writing page table in user mode. If I get
>> rid of this constraint, vmware will go a little bit further.
>> Is it safe to remove this constraint?
>> 
>> Best Regards,
>> Disheng, Su
>> 
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
>
>
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-devel
>

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