* [PATCH] hide 64bit mode
@ 2005-12-16 7:33 Ling, Xiaofeng
0 siblings, 0 replies; only message in thread
From: Ling, Xiaofeng @ 2005-12-16 7:33 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 102 bytes --]
hide 64bit mode on i386 hypervisor and guest.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
[-- Attachment #2: cpuidem64t.patch --]
[-- Type: text/x-patch, Size: 851 bytes --]
# HG changeset patch
# User Xiaofeng Ling <xiaofeng.ling@intel.com>
# Node ID 24f89f563f46b72382731e692d702b1e629201f0
# Parent e035a8b7cfcc5e9d581da7df380d5107310e6a6b
hide 64bit mode on an i386 guest.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
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;
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-16 7:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-16 7:33 [PATCH] hide 64bit mode Ling, Xiaofeng
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.