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

[Xen-changelog] [xen-unstable] [VMXASSIST] Small fix to virt-to-phys translation.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID bdf3bddc97e771e855a852feb5a6140f4a4ab296
# Parent  b042bf974f3a32684596807f32e013f9e22944af
[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@xxxxxxxxxxxxx>
---
 tools/firmware/vmxassist/vm86.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r b042bf974f3a -r bdf3bddc97e7 tools/firmware/vmxassist/vm86.c
--- a/tools/firmware/vmxassist/vm86.c   Tue Sep 26 08:34:52 2006 +0100
+++ b/tools/firmware/vmxassist/vm86.c   Tue Sep 26 08:36:39 2006 +0100
@@ -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);
                }

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


 


Rackspace

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