[PATCH 0/3] KVM: SVM: Clean up SEV-ES save area management

From: Sean Christopherson
Date: Fri Aug 02 2024 - 16:45:28 EST


Clean up KVM's handling of the SEV-ES host save area, and opportunistically
add a helper to dedup code for converting an SME-tweaked PA back into its
struct page.

Sean Christopherson (3):
KVM: SVM: Add a helper to convert a SME-aware PA back to a struct page
KVM: SVM: Add host SEV-ES save area structure into VMCB via a union
KVM: SVM: Track the per-CPU host save area as a VMCB pointer

arch/x86/include/asm/svm.h | 20 +++++++++++++++-----
arch/x86/kvm/svm/svm.c | 24 ++++++++++++------------
arch/x86/kvm/svm/svm.h | 18 ++++++++++++++++--
3 files changed, 43 insertions(+), 19 deletions(-)


base-commit: 332d2c1d713e232e163386c35a3ba0c1b90df83f
--
2.46.0.rc2.264.g509ed76dc8-goog