]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: SVM: Advertise TSA CPUID bits to guests
authorBorislav Petkov <bp@kernel.org>
Tue, 15 Jul 2025 12:37:48 +0000 (14:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:28:01 +0000 (18:28 +0200)
commit6fea1a4e150f1fe3726310558f33a30e0c209153
tree8c1e9695e96ed0b516e701d838bc3bfc7c5df9a9
parent6457a8c0a02694375271cb40250527672c64395d
KVM: SVM: Advertise TSA CPUID bits to guests

From: "Borislav Petkov (AMD)" <bp@alien8.de>

Commit 31272abd5974b38ba312e9cf2ec2f09f9dd7dcba upstream.

Synthesize the TSA CPUID feature bits for guests. Set TSA_{SQ,L1}_NO on
unaffected machines.

  [ backporting notes: 5.10 doesn't have the KVM-only CPUID leafs so
    allocate a separate capability leaf for CPUID_8000_0021_ECX to avoid
    backporting the world and more. ]

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/cpufeature.h
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/disabled-features.h
arch/x86/include/asm/required-features.h
arch/x86/kernel/cpu/scattered.c
arch/x86/kvm/cpuid.c
arch/x86/kvm/cpuid.h