Skip to content

KVM: SEV: Bug fix, cleanups and enhancements

Sean Christopherson kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6KVM: SEV: Disallow COPY_ENC_CONTEXT_FROM if target has created vCPUsarch/x86/kvm/svm/sev.c+6 -12 replies
2/6KVM: SEV: Explicitly document that there are no TOCTOU races in copy ASIDarch/x86/kvm/svm/sev.c+16 -81 reply
3/6KVM: SEV: Set sev_info.active after initial checks in sev_guest_init()arch/x86/kvm/svm/sev.c+3 -30 replies
4/6KVM: SEV: WARN if SEV-ES is marked active but SEV is notarch/x86/kvm/svm/svm.h+1 -10 replies
5/6KVM: SEV: Drop a redundant setting of sev->asid during initializationarch/x86/kvm/svm/sev.c+0 -10 replies
6/6KVM: SEV: Fix typo in and tweak name of cmd_allowed_from_miror()arch/x86/kvm/svm/sev.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] KVM: SEV: Bug fix, cleanups and enhancements

Bug fix for COPY_ENC_CONTEXT_FROM that IIRC is very belated feedback (git says its been sitting in my local repo since at least early September).

The other patches are tangentially related cleanups and enhancements for the SEV and SEV-ES info, e.g. active flag, ASID, etc...

Booted an SEV guest, otherwise it's effectively all compile-tested only.

Sean Christopherson (6):
KVM: SEV: Disallow COPY_ENC_CONTEXT_FROM if target has created vCPUs
KVM: SEV: Explicitly document that there are no TOCTOU races in copy
ASID
KVM: SEV: Set sev_info.active after initial checks in sev_guest_init()
KVM: SEV: WARN if SEV-ES is marked active but SEV is not
KVM: SEV: Drop a redundant setting of sev->asid during initialization
KVM: SEV: Fix typo in and tweak name of cmd_allowed_from_miror()

 arch/x86/kvm/svm/sev.c | 42 +++++++++++++++++++++++++++---------------
 arch/x86/kvm/svm/svm.h |  2 +-
 2 files changed, 28 insertions(+), 16 deletions(-)
Signature · 1 line
2.34.0.rc0.344.g81b53c2807-goog