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

xen-devel

Re: [Xen-devel] [PATCH] Optimizing x86-64 xenlinux using global pages fo

To: "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Optimizing x86-64 xenlinux using global pages for user mode (take 2)
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 30 Aug 2006 22:18:18 +0100
Delivery-date: Wed, 30 Aug 2006 14:18:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8FFF7E42E93CC646B632AB40643802A8D3A21D@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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbL/5UqcHfKdRZfQTa9q9O4P2Kz2gAejrc/
Thread-topic: [Xen-devel] [PATCH] Optimizing x86-64 xenlinux using global pages for user mode (take 2)
User-agent: Microsoft-Entourage/11.2.5.060620
On 30/8/06 7:43 am, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx> wrote:

> The previous patch had a problem with the builder, which constructs the
> initial page tables with the USER bit on. And Xen couldn't distinguish
> kernel or use pages. It was partially checked avoiding the bug, and it's
> finished with this patch.

I'd like to avoid awareness of the extra PAGE_GUEST_KERNEL bit in guests and
tools as much as possible (in fact, entirely would be good).

There's no need for all the PAGE_KERNEL macros in Linux to include the new
flag. The absence of PAGE_USER will suffice to allow Xen to distinguish
kernel entries from user entries. All that is necessary is for Xen to add
the flag when it adds PAGE_USER to a kernel entry, so that kernel entries
remain disambiguated from user entries.

Also, you should use one of the high-order available bits (one of bits
52-60). Other OSes use the low-order available bits for their own purposes
-- we may as well avoid conflicting with them.

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>