Skip to content

Commit 83c5291

Browse files
Liu, Jinsongavikivity
authored andcommitted
KVM: x86: expose Intel cpu new features (HLE, RTM) to guest
Intel recently release 2 new features, HLE and RTM. Refer to http://software.intel.com/file/41417. This patch expose them to guest. Signed-off-by: Liu, Jinsong <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
1 parent 0034102 commit 83c5291

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/kvm/cpuid.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ static int do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
247247

248248
/* cpuid 7.0.ebx */
249249
const u32 kvm_supported_word9_x86_features =
250-
F(FSGSBASE) | F(BMI1) | F(AVX2) | F(SMEP) | F(BMI2) | F(ERMS);
250+
F(FSGSBASE) | F(BMI1) | F(HLE) | F(AVX2) | F(SMEP) |
251+
F(BMI2) | F(ERMS) | F(RTM);
251252

252253
/* all calls to cpuid_count() should be made on the same cpu */
253254
get_cpu();

0 commit comments

Comments
 (0)