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

[Xen-devel] [PATCH] [VT] Hide VMX cpu feature from unmodified Guests


  • To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Kamble, Nitin A" <nitin.a.kamble@xxxxxxxxx>
  • Date: Tue, 11 Oct 2005 17:04:26 -0700
  • Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
  • Delivery-date: Wed, 12 Oct 2005 00:01:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcXOwIGYVAg6cK9PS4KMr1kqoE/PGQ==
  • Thread-topic: [PATCH] [VT] Hide VMX cpu feature from unmodified Guests

Keir, Ian,
  This small patch hides VMX from the unmodified (vmx) guests.
Please apply.

# HG changeset patch
# User Nitin A Kamble <nitin.a.kamble@xxxxxxxxx>
# Node ID ff1112544420b960908884b84f99f6760a1a0b7e
# Parent  00037ba13f0bb8efe4b2c3efe40200eac21c68dd
Hide the VMX cpu feature from unmodified Guests.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@xxxxxxxxx>

diff -r 00037ba13f0bb8efe4b2c3efe40200eac21c68dd -r
ff1112544420b960908884b84f99f6760a1a0b7e xen/arch/x86/vmx.c
--- a/xen/arch/x86/vmx.c    Tue Oct  4 17:23:58 2005
+++ b/xen/arch/x86/vmx.c    Tue Oct 11 23:21:17 2005
@@ -472,6 +472,7 @@
 #endif

         /* Unsupportable for virtualised CPUs. */
+        clear_bit(X86_FEATURE_VMXE & 31, &ecx);
         clear_bit(X86_FEATURE_MWAIT & 31, &ecx);
     }



Thanks & Regards,
Nitin
------------------------------------------------------------------------
-----------
Open Source Technology Center, Intel Corp

Attachment: vmx_hidefromguest.patch
Description: vmx_hidefromguest.patch

_______________________________________________
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®.