]> Git Repo - linux.git/commitdiff
KVM: x86: AMD Processor Topology Information
authorStanislav Lanci <[email protected]>
Mon, 29 Jan 2018 16:39:44 +0000 (11:39 -0500)
committerRadim Krčmář <[email protected]>
Wed, 31 Jan 2018 17:25:34 +0000 (18:25 +0100)
This patch allow to enable x86 feature TOPOEXT. This is needed to provide
information about SMT on AMD Zen CPUs to the guest.

Signed-off-by: Stanislav Lanci <[email protected]>
Tested-by: Nick Sarnie <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Signed-off-by: Babu Moger <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
arch/x86/kvm/cpuid.c

index ac0041c2f5afe7faa9cb6cb86937a3e06277a097..20e491b94f44e4ba5bc78294b6a0b281c2b43c39 100644 (file)
@@ -371,7 +371,8 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
                F(LAHF_LM) | F(CMP_LEGACY) | 0 /*SVM*/ | 0 /* ExtApicSpace */ |
                F(CR8_LEGACY) | F(ABM) | F(SSE4A) | F(MISALIGNSSE) |
                F(3DNOWPREFETCH) | F(OSVW) | 0 /* IBS */ | F(XOP) |
-               0 /* SKINIT, WDT, LWP */ | F(FMA4) | F(TBM);
+               0 /* SKINIT, WDT, LWP */ | F(FMA4) | F(TBM) |
+               F(TOPOEXT);
 
        /* cpuid 0xC0000001.edx */
        const u32 kvm_cpuid_C000_0001_edx_x86_features =
This page took 0.059355 seconds and 4 git commands to generate.