Skip to content

clean up interface between KVM and psp

Mingwei Zhang kvm linux-crypto lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 11 repliesIn review
  2. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- split the bug fixing patch as the 1st one.
- fix the build error. [paolo]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: SVM: fix missing sev_decommission in sev_receive_startarch/x86/kvm/svm/sev.c+3 -12 replies
2/4KVM: SVM: move sev_decommission to psp driverarch/x86/kvm/svm/sev.c drivers/crypto/ccp/sev-dev.c include/linux/psp-sev.h+15 -190 replies
3/4KVM: SVM: move sev_bind_asid to psparch/x86/kvm/svm/sev.c drivers/crypto/ccp/sev-dev.c include/linux/psp-sev.h+38 -229 replies
4/4KVM: SVM: move sev_unbind_asid and DF_FLUSH logic into psparch/x86/kvm/svm/sev.c drivers/crypto/ccp/sev-dev.c include/linux/psp-sev.h+57 -340 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchBrijesh SinghMarc Orr
1/4R-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] clean up interface between KVM and psp

This patch set starts from a minor fix patch by adding sev decommission; the rest 3 patches are trying to help make the interface between KVM and psp cleaner and simpler. In particular, these patches do the following improvements:
- avoid the requirement of psp data structures for some psp APIs.
- hide error handling within psp API, eg., using sev_guest_decommission.
- hide the serialization requirement between DF_FLUSH and DEACTIVATE.

v1 -> v2:
- split the bug fixing patch as the 1st one.
- fix the build error. [paolo]

Mingwei Zhang (3):
KVM: SVM: move sev_decommission to psp driver
KVM: SVM: move sev_bind_asid to psp
KVM: SVM: move sev_unbind_asid and DF_FLUSH logic into psp

 arch/x86/kvm/svm/sev.c       | 69 ++++--------------------------------
 drivers/crypto/ccp/sev-dev.c | 57 +++++++++++++++++++++++++++--
 include/linux/psp-sev.h      | 44 ++++++++++++++++++++---
 3 files changed, 102 insertions(+), 68 deletions(-)

--
2.33.0.rc1.237.g0d66db33f3-goog