Skip to content

Add support for allowing zero SEV ASIDs

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 svm, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest4 patches 5 repliesApplied

Changes in v4 from the cover letter

- Convert all ASID usage to unsigned integers.
- Clean up sev_asid_new() so that it doesn't needlessly overload its return value.
- Split out the -EBUSY=>-EINVAL change to a separate patch.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: SVM: Set sev->asid in sev_asid_new() instead of overloading the returnarch/x86/kvm/svm/sev.c+5 -51 reply
2/4KVM: SVM: Use unsigned integers when dealing with ASIDsarch/x86/kvm/svm/sev.c arch/x86/kvm/trace.h+15 -132 replies
3/4KVM: SVM: Add support for allowing zero SEV ASIDsarch/x86/kvm/svm/sev.c+19 -100 replies
4/4KVM: SVM: Return -EINVAL instead of -EBUSY on attempt to re-init SEV/SEV-ESarch/x86/kvm/svm/sev.c+1 -21 reply

Reviews trailers per patch

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

PatchTom Lendacky
1/4R-b
2/4R-b
3/4A-b
4/4R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/4] Add support for allowing zero SEV ASIDs

Play nice with systems where SEV and SEV-ES are enabled, but all ASIDs have been carved out for SEV-eS, i.e. where actually running SEV guests is impossible.

v4:
- Convert all ASID usage to unsigned integers.
- Clean up sev_asid_new() so that it doesn't needlessly overload its return value.
- Split out the -EBUSY=>-EINVAL change to a separate patch.

v3: https://lore.kernel.org/all/[email protected]

Ashish Kalra (1):
KVM: SVM: Add support for allowing zero SEV ASIDs

Sean Christopherson (3):
KVM: SVM: Set sev->asid in sev_asid_new() instead of overloading the
return
KVM: SVM: Use unsigned integers when dealing with ASIDs
KVM: SVM: Return -EINVAL instead of -EBUSY on attempt to re-init
SEV/SEV-ES

 arch/x86/kvm/svm/sev.c | 58 +++++++++++++++++++++++++-----------------
 arch/x86/kvm/trace.h   | 10 ++++----
 2 files changed, 39 insertions(+), 29 deletions(-)

base-commit: 41bccc98fb7931d63d03f326a746ac4d429c1dd3

Signature · 1 line
2.43.0.429.g432eaa2c6b-goog