KVM: x86: AMD Processor Topology Information

"Linux Kernel Mailing List" <[email protected]> Sat, 10 Feb 2018 22:00:24 +0000 (UTC)
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/806793f5f76eb9c000ed05e307a8f7e9450b3291
Commit:     806793f5f76eb9c000ed05e307a8f7e9450b3291
Parent:     d391f1207067268261add0485f0f34503539c5b0
Refname:    refs/heads/master
Author:     Stanislav Lanci <[email protected]>
AuthorDate: Mon Jan 29 11:39:44 2018 -0500
Committer:  Radim Krčmář <[email protected]>
CommitDate: Wed Jan 31 18:25:34 2018 +0100

    KVM: x86: AMD Processor Topology Information
    
    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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index ac0041c2f5af..20e491b94f44 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -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 =
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html