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

[Xen-devel] [PATCH] hide 64bit mode



hide 64bit mode on i386 hypervisor and guest.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
# HG changeset patch
# User Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
# Node ID 24f89f563f46b72382731e692d702b1e629201f0
# Parent  e035a8b7cfcc5e9d581da7df380d5107310e6a6b
hide 64bit mode on an i386 guest.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>

diff -r e035a8b7cfcc -r 24f89f563f46 xen/arch/x86/vmx.c
--- a/xen/arch/x86/vmx.c        Fri Dec 16 06:10:48 2005 +0800
+++ b/xen/arch/x86/vmx.c        Fri Dec 16 15:05:43 2005 +0800
@@ -553,6 +553,13 @@
         ecx &= ~VMX_VCPU_CPUID_L1_RESERVED; /* mask off reserved bits */
         clear_bit(X86_FEATURE_VMXE & 31, &ecx);
         clear_bit(X86_FEATURE_MWAIT & 31, &ecx);
+#ifdef __i386__
+    }
+    else if (input == 0x80000001)
+    {
+        /* mask feature for Intel ia32e or AMD long mode*/
+        clear_bit(X86_FEATURE_LM & 31, &edx);
+#endif
     }
 
     regs->eax = (unsigned long) eax;
_______________________________________________
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®.