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-3.1-testing] svm: Properly mask unsupported bits in

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] svm: Properly mask unsupported bits in CPUID_80000001_ECX.
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 14 Jan 2008 09:20:38 -0800
Delivery-date: Mon, 14 Jan 2008 09:26:57 -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 1200130705 0
# Node ID 927fb0b1201ca9cb5436404abdd85bd215bc7ca5
# Parent  c3dc2dedc23086f34e706155c4dae4162165f118
svm: Properly mask unsupported bits in CPUID_80000001_ECX.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   16708:a30aabe3c84a
xen-unstable date:        Sat Jan 12 09:29:38 2008 +0000
---
 xen/arch/x86/hvm/svm/svm.c |    6 ++++++
 1 files changed, 6 insertions(+)

diff -r c3dc2dedc230 -r 927fb0b1201c xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c        Sat Jan 12 09:37:57 2008 +0000
+++ b/xen/arch/x86/hvm/svm/svm.c        Sat Jan 12 09:38:25 2008 +0000
@@ -1160,6 +1160,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-3.1-testing] svm: Properly mask unsupported bits in CPUID_80000001_ECX., Xen patchbot-3.1-testing <=