[PATCH 6.12.y 0/2] KVM: SEV: Backports for GHCB leak fix

From: Sean Christopherson

Date: Tue Jun 30 2026 - 13:23:03 EST


Backports for what are effectively patches 2/4 and 4/4 from this chunk of
commits (1/4 and 3/4 are already in 6.12.y).

8618004d3e89 KVM: Don't WARN if memory is dirtied without a vCPU when the VM is dying
08385c5e1814 KVM: SEV: Move sev_free_vcpu() down below sev_es_unmap_ghcb()
f041dc80de4a KVM: SEV: Decouple the need to sync the GHCB SA from the need to free the SA
db38bcb33110 KVM: SEV: Unmap and unpin the GHCB as needed on vCPU free

Cc: Jack Wang <jinpu.wang@xxxxxxxxx>

Sean Christopherson (2):
KVM: SEV: Move sev_free_vcpu() down below sev_es_unmap_ghcb()
KVM: SEV: Unmap and unpin the GHCB as needed on vCPU free

arch/x86/kvm/svm/sev.c | 84 ++++++++++++++++++++++--------------------
1 file changed, 45 insertions(+), 39 deletions(-)


base-commit: 0b8f247169e487eff2d4c2dd531bc43f7efda2cb
--
2.55.0.rc0.799.gd6f94ed593-goog