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/
Home Products Support Community News


Re: [Xen-devel] PAE is_guest_l2_slot()

To: Jan Beulich <jbeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] PAE is_guest_l2_slot()
From: Gerd Hoffmann <kraxel@xxxxxxx>
Date: Tue, 12 Sep 2006 16:51:54 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 12 Sep 2006 07:42:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4506E094.76E4.0078.0@xxxxxxxxxx>
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: <4506D993.76E4.0078.0@xxxxxxxxxx> <4506C362.10403@xxxxxxx> <4506E094.76E4.0078.0@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (X11/20060725)
Jan Beulich wrote:
>>>> Gerd Hoffmann <kraxel@xxxxxxx> 12.09.06 16:25 >>>
>> Jan Beulich wrote:
>>> Could anyone help me understand what the meaning of the hardcoded 3 in that
>>> macro is?
>> xen address space window is in l2 table #3 (of 4) ...
> That's why I pointed out that the mask is 11 bits (not 2) - what you say 
> would mean
> that the constant should be 0x600 (the top 11 bits of such a va), and 
> comparison
> should be >= rather than ==.

IIRC the full 11 bits are needed for L1 tables only (2 indexing into L3
and 9 indexing into L2).  Has been quite some time I looked into this
code ...



Gerd Hoffmann <kraxel@xxxxxxx>

Xen-devel mailing list

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