[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] x86-64 machine_to_phys vs NX bit





On 25/8/06 4:19 pm, "Rik van Riel" <riel@xxxxxxxxxx> wrote:

>> A long is only 32 bits there, so when we pass the MFN portion the NX bit is
>> conveniently truncated away!
> 
> Which means it'll do the wrong thing for machine addresses > 4GB
> on PAE, or am I overlooking something?

No, it gets shifted right 12 and *then* converted to a long. So you get a
44-bit addressing capability (32+12). But NX bit is bit 63, so it gets
truncated.

 -- Keir



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.