[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.1-testing] svm: Properly mask unsupported bits in CPUID_80000001_ECX.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |