aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu, Jinsong <jinsong.liu@intel.com>2014-02-21 12:36:12 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2014-02-22 09:53:34 -0500
commit49345f13f0830741b94b867cf906c4aad3988306 (patch)
tree63b2ab52144f33bda7d29a2cb12a915d3e25241f
parent0c79893b2bad49e0c391a9499f50fcd5b0f80874 (diff)
KVM: x86: expose ADX feature to guest
From 0750e335eb5860b0b483e217e8a08bd743cbba16 Mon Sep 17 00:00:00 2001 From: Liu Jinsong <jinsong.liu@intel.com> Date: Thu, 20 Feb 2014 17:39:32 +0800 Subject: [PATCH] KVM: x86: expose ADX feature to guest ADCX and ADOX instructions perform an unsigned addition with Carry flag and Overflow flag respectively. Signed-off-by: Xudong Hao <xudong.hao@intel.com> Signed-off-by: Liu Jinsong <jinsong.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/x86/kvm/cpuid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index abe18b489e73..a951ae4d2370 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -303,7 +303,8 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
303 /* cpuid 7.0.ebx */ 303 /* cpuid 7.0.ebx */
304 const u32 kvm_supported_word9_x86_features = 304 const u32 kvm_supported_word9_x86_features =
305 F(FSGSBASE) | F(BMI1) | F(HLE) | F(AVX2) | F(SMEP) | 305 F(FSGSBASE) | F(BMI1) | F(HLE) | F(AVX2) | F(SMEP) |
306 F(BMI2) | F(ERMS) | f_invpcid | F(RTM) | F(RDSEED); 306 F(BMI2) | F(ERMS) | f_invpcid | F(RTM) | F(RDSEED) |
307 F(ADX);
307 308
308 /* all calls to cpuid_count() should be made on the same cpu */ 309 /* all calls to cpuid_count() should be made on the same cpu */
309 get_cpu(); 310 get_cpu();