[PATCH] [VT] Hide VMX cpu feature from unmodified Guests

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] [VT] Hide VMX cpu feature from unmodified Guests

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

# HG changeset patch
# User Nitin A Kamble <[hidden email]>
# Node ID ff1112544420b960908884b84f99f6760a1a0b7e
# Parent  00037ba13f0bb8efe4b2c3efe40200eac21c68dd
Hide the VMX cpu feature from unmodified Guests.

Signed-Off-By: Nitin A Kamble <[hidden email]>

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


_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xensource.com/xen-devel

vmx_hidefromguest.patch (958 bytes) Download Attachment