]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: SVM: Set synthesized TSA CPUID flags
authorBorislav Petkov (AMD) <bp@alien8.de>
Tue, 15 Jul 2025 19:24:59 +0000 (21:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:37:24 +0000 (18:37 +0200)
commitf3f9deccfc68a6b7c8c1cc51e902edba23d309d4
treebd20cf4886a0ffc0a0a6193a726ea2e44c14895f
parentf004f58d18a2d3dc761cf973ad27b4a5997bd876
KVM: SVM: Set synthesized TSA CPUID flags

VERW_CLEAR is supposed to be set only by the hypervisor to denote TSA
mitigation support to a guest. SQ_NO and L1_NO are both synthesizable,
and are going to be set by hw CPUID on future machines.

So keep the kvm_cpu_cap_init_kvm_defined() invocation *and* set them
when synthesized.

This fix is stable-only.

Co-developed-by: Jinpu Wang <jinpu.wang@ionos.com>
Signed-off-by: Jinpu Wang <jinpu.wang@ionos.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/cpuid.c