ia64/xen-unstable

changeset 13891:0cbf1586a432

[HVM][SVM] Do not advertise FFXSR feature.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Thu Feb 08 18:01:42 2007 +0000 (2007-02-08)
parents 355c740d1330
children 3050c8339da6
files xen/arch/x86/hvm/svm/svm.c xen/include/asm-x86/cpufeature.h
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Thu Feb 08 17:46:14 2007 +0000
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Thu Feb 08 18:01:42 2007 +0000
     1.3 @@ -1199,6 +1199,8 @@ static void svm_vmexit_do_cpuid(struct v
     1.4          /* So far, we do not support 3DNow for the guest. */
     1.5          clear_bit(X86_FEATURE_3DNOW & 31, &edx);
     1.6          clear_bit(X86_FEATURE_3DNOWEXT & 31, &edx);
     1.7 +        /* no FFXSR instructions feature. */
     1.8 +        clear_bit(X86_FEATURE_FFXSR & 31, &edx);
     1.9      }
    1.10      else if ( input == 0x80000007 || input == 0x8000000A )
    1.11      {
     2.1 --- a/xen/include/asm-x86/cpufeature.h	Thu Feb 08 17:46:14 2007 +0000
     2.2 +++ b/xen/include/asm-x86/cpufeature.h	Thu Feb 08 18:01:42 2007 +0000
     2.3 @@ -93,6 +93,7 @@
     2.4  #define X86_FEATURE_LAHF_LM	(6*32+ 0) /* LAHF/SAHF in long mode */
     2.5  #define X86_FEATURE_CMP_LEGACY	(6*32+ 1) /* If yes HyperThreading not valid */
     2.6  #define X86_FEATURE_SVME        (6*32+ 2) /* Secure Virtual Machine */
     2.7 +#define X86_FEATURE_FFXSR       (6*32+25) /* FFXSR instruction optimizations */
     2.8  
     2.9  #define cpu_has(c, bit)		test_bit(bit, (c)->x86_capability)
    2.10  #define boot_cpu_has(bit)	test_bit(bit, boot_cpu_data.x86_capability)