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