Re: [PATCH v3 0/2] KVM: SVM: Fix a bug where TSC_AUX can get clobbered

From: Sean Christopherson
Date: Wed Sep 24 2025 - 14:45:32 EST


On Tue, 23 Sep 2025 08:37:36 -0700, Sean Christopherson wrote:
> Fix a bug where an SEV-ES vCPU running on the same pCPU as a non-SEV-ES vCPU
> could clobber TSC_AUX due to loading the host's TSC_AUX on #VMEXIT, as opposed
> to restoring whatever was in hardware at the time of VMRUN.
>
> v3:
> - Collect reviews. [Xiaoyao]
> - Make tsc_aux_uret_slot globally visible instead of passing it as a param.
> [Xiaoyao]
> - Mark tsc_aux_uret_slot __ro_after_init.
>
> [...]

Applied to kvm-x86 svm, thanks!

[1/2] KVM: x86: Add helper to retrieve current value of user return MSR
https://github.com/kvm-x86/linux/commit/9bc366350734
[2/2] KVM: SVM: Re-load current, not host, TSC_AUX on #VMEXIT from SEV-ES guest
https://github.com/kvm-x86/linux/commit/29da8c823abf

--
https://github.com/kvm-x86/linux/tree/next