Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 806793f5 authored by Stanislav Lanci's avatar Stanislav Lanci Committed by Radim Krčmář
Browse files

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: default avatarStanislav Lanci <pixo@polepetko.eu>
Tested-by: default avatarNick Sarnie <commendsarnex@gmail.com>
Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarBabu Moger <babu.moger@amd.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent d391f120
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 =