Re: [PATCH v2] KVM: SVM: Trigger new ASID allocation in both VMCBs on pCPU switch

From: Sean Christopherson

Date: Fri Oct 02 2026 - 17:14:17 EST


On Thu, 03 Sep 2026 22:32:58 +0000, Yosry Ahmed wrote:
> When the pCPU where the VMCB was mostly recently used is switched, reset
> the ASID generation in both VMCBs, triggering new ASID allocation for
> the immediate VMRUN as well as the next VMRUN on the other VMCB.
>
> The ASID is shared between vmcb01 and vmcb02, and gets flushed on every
> nested transition. However, since pCPU tracking is done per VMCB, it is
> possible for one VMCB to allocate a new ASID when migrated to a new
> pCPU, and then the other VMCB reuses that ASID on the old pCPU. This can
> result in the same ASID being used by multiple vCPUs on the old pCPU.
>
> [...]

Applied to kvm-x86 svm, thanks!

[1/1] KVM: SVM: Trigger new ASID allocation in both VMCBs on pCPU switch
https://github.com/kvm-x86/linux/commit/bf260dc9e7b8

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