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

[Xen-changelog] [xen-unstable] svm: Properly mask unsupported bits in CP

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] svm: Properly mask unsupported bits in CPUID_80000001_ECX.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 12 Jan 2008 06:30:13 -0800
Delivery-date: Sat, 12 Jan 2008 06:30:21 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1200130178 0
# Node ID a30aabe3c84a71404202f6b18d06cb313842ee23
# Parent  51aa2f884f6446b7e376a749ead8038359b70ec1
svm: Properly mask unsupported bits in CPUID_80000001_ECX.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/hvm/svm/svm.c |    6 ++++++
 1 files changed, 6 insertions(+)

diff -r 51aa2f884f64 -r a30aabe3c84a xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c        Fri Jan 11 11:01:36 2008 +0000
+++ b/xen/arch/x86/hvm/svm/svm.c        Sat Jan 12 09:29:38 2008 +0000
@@ -1009,6 +1009,12 @@ static void svm_vmexit_do_cpuid(struct v
         __clear_bit(X86_FEATURE_PSE36 & 31, &edx);
 
         /* Filter all other features according to a whitelist. */
+        ecx &= (bitmaskof(X86_FEATURE_LAHF_LM) |
+                bitmaskof(X86_FEATURE_ALTMOVCR) |
+                bitmaskof(X86_FEATURE_ABM) |
+                bitmaskof(X86_FEATURE_SSE4A) |
+                bitmaskof(X86_FEATURE_MISALIGNSSE) |
+                bitmaskof(X86_FEATURE_3DNOWPF));
         edx &= (0x0183f3ff | /* features shared with 0x00000001:EDX */
                 bitmaskof(X86_FEATURE_NX) |
                 bitmaskof(X86_FEATURE_LM) |

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] svm: Properly mask unsupported bits in CPUID_80000001_ECX., Xen patchbot-unstable <=