From a3ba6d1d9cd6785fdb2e07eeccd45a5117535f67 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 8 Feb 2007 18:01:42 +0000 Subject: [PATCH] [HVM][SVM] Do not advertise FFXSR feature. Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/svm/svm.c | 2 ++ xen/include/asm-x86/cpufeature.h | 1 + 2 files changed, 3 insertions(+) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index 76112e14ef..bad0b12b92 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -1199,6 +1199,8 @@ static void svm_vmexit_do_cpuid(struct vmcb_struct *vmcb, /* So far, we do not support 3DNow for the guest. */ clear_bit(X86_FEATURE_3DNOW & 31, &edx); clear_bit(X86_FEATURE_3DNOWEXT & 31, &edx); + /* no FFXSR instructions feature. */ + clear_bit(X86_FEATURE_FFXSR & 31, &edx); } else if ( input == 0x80000007 || input == 0x8000000A ) { diff --git a/xen/include/asm-x86/cpufeature.h b/xen/include/asm-x86/cpufeature.h index a6f2f757bc..754c6dbf5a 100644 --- a/xen/include/asm-x86/cpufeature.h +++ b/xen/include/asm-x86/cpufeature.h @@ -93,6 +93,7 @@ #define X86_FEATURE_LAHF_LM (6*32+ 0) /* LAHF/SAHF in long mode */ #define X86_FEATURE_CMP_LEGACY (6*32+ 1) /* If yes HyperThreading not valid */ #define X86_FEATURE_SVME (6*32+ 2) /* Secure Virtual Machine */ +#define X86_FEATURE_FFXSR (6*32+25) /* FFXSR instruction optimizations */ #define cpu_has(c, bit) test_bit(bit, (c)->x86_capability) #define boot_cpu_has(bit) test_bit(bit, boot_cpu_data.x86_capability) -- 2.30.2