mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
[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:
1 parent
7dd93351eb
commit
2d5c2b773d
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||