WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] hide 64bit mode
From: "Ling, Xiaofeng" <xiaofeng.ling@xxxxxxxxx>
Date: Fri, 16 Dec 2005 15:33:30 +0800
Delivery-date: Fri, 16 Dec 2005 07:38:00 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] hide 64bit mode, Ling, Xiaofeng <=