All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ling, Xiaofeng" <xiaofeng.ling@intel.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] hide 64bit mode
Date: Fri, 16 Dec 2005 15:33:30 +0800	[thread overview]
Message-ID: <43A26DCA.9070809@intel.com> (raw)

[-- 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

                 reply	other threads:[~2005-12-16  7:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43A26DCA.9070809@intel.com \
    --to=xiaofeng.ling@intel.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.