[VMXASSIST] Small fix to virt-to-phys translation.

CR4.PSE is ignored in PAE mode, so remove test of it.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-09-26 08:36:39 +01:00
1 parent 7dd93351eb
commit 2d5c2b773d
1 file changed
+1 -1
+1 -1
View File
@@ -95,7 +95,7 @@ guest_linear_to_real(uint32_t base)
if (!(l1_mfn & PT_ENTRY_PRESENT))
panic("l2 entry not present\n");
if ((oldctx.cr4 & CR4_PSE) && (l1_mfn & PDE_PS)) {
if (l1_mfn & PDE_PS) { /* CR4.PSE is ignored in PAE mode */
l0_mfn = l1_mfn & 0x3ffe00000ULL;
return l0_mfn + (base & 0x1fffff);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.