Re: [PATCH v2] KVM: SVM: Update tracked pCPU on pCPU switch

From: Sean Christopherson

Date: Fri Nov 13 2026 - 09:21:46 EST


On Tue, 13 Oct 2026 19:53:58 +0000, Yosry Ahmed wrote:
> When a pCPU switch is detected in pre_svm_run(), update the tracked pCPU
> and mark all fields dirty in both VMCBs (if nested is initialized), in
> addition to resetting the ASID generation in both VMCBs.
>
> Commit bf260dc9e7b8 ("KVM: SVM: Trigger new ASID allocation in both
> VMCBs on pCPU switch") reset the ASID generation in both VMCBs on a pCPU
> switch, but only updated the tracked pCPU for the active VMCB to avoid
> unnecessarily dirtying the inactive VMCB. Leaving the inactive VMCB's
> tracked pCPU set to an old pCPU still allows an ASID allocated on one
> pCPU to be used on another:
>
> [...]

Applied to kvm-x86 fixes, thanks!

[1/1] KVM: SVM: Update tracked pCPU on pCPU switch
https://github.com/kvm-x86/linux/commit/d41766c45065

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