mbox series

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

Message ID 20240802204511.352017-1-seanjc@google.com (mailing list archive)
Headers show
Series KVM: SVM: Clean up SEV-ES save area management | expand

Message

Sean Christopherson Aug. 2, 2024, 8:45 p.m. UTC
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

Comments

Sean Christopherson Aug. 31, 2024, 12:21 a.m. UTC | #1
On Fri, 02 Aug 2024 13:45:08 -0700, Sean Christopherson wrote:
> 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
> 
> [...]

Applied to kvm-x86 svm, thanks!

[1/3] KVM: SVM: Add a helper to convert a SME-aware PA back to a struct page
      https://github.com/kvm-x86/linux/commit/48547fe75ea7
[2/3] KVM: SVM: Add host SEV-ES save area structure into VMCB via a union
      https://github.com/kvm-x86/linux/commit/1b5ef14dc656
[3/3] KVM: SVM: Track the per-CPU host save area as a VMCB pointer
      https://github.com/kvm-x86/linux/commit/32071fa355e7

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