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] [VT] Hide VMX cpu feature from unmodified Guests

To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] [VT] Hide VMX cpu feature from unmodified Guests
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
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
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [VT] Hide VMX cpu feature from unmodified Guests, Kamble, Nitin A <=