Skip to content

Add AMD SEV and SEV-ES intra host migration support

Paolo Bonzini kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v12 Latest7 patches 3 repliesIn review

Patches in v12 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7KVM: SEV: Refactor out sev_es_state structarch/x86/kvm/svm/sev.c arch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+61 -560 replies
2/7KVM: generalize "bugged" VM to "dead" VMarch/x86/kvm/x86.c include/linux/kvm_host.h virt/kvm/kvm_main.c+16 -80 replies
3/7KVM: SEV: provide helpers to charge/uncharge misc_cgarch/x86/kvm/svm/sev.c+15 -70 replies
4/7KVM: SEV: Add support for SEV intra host migrationDocumentation/virt/kvm/api.rst arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/sev.c +4 more+177 -01 reply
5/7KVM: SEV: Add support for SEV-ES intra host migrationarch/x86/kvm/svm/sev.c+47 -10 replies
6/7selftest: KVM: Add open sev dev helpertools/testing/selftests/kvm/include/kvm_util.h tools/testing/selftests/kvm/include/x86_64/svm_util.h tools/testing/selftests/kvm/lib/kvm_util.c +1 more+30 -100 replies
7/7selftest: KVM: Add intra host migration teststools/testing/selftests/kvm/Makefile tools/testing/selftests/kvm/x86_64/sev_migrate_tests.c+205 -10 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchTom LendackySean ChristophersonMarc Orr
1/7A-b R-b
2/7
3/7
4/7R-b
5/7R-b
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v12 thread

Cover letter [PATCH v12 0/7] Add AMD SEV and SEV-ES intra host migration support

This is a fixed version of Peter Gonda's series. The main change is that it uses the "bugged" VM implementation (now renamed to "dead") to ensure the source VM is inoperational, and that it correctly charges the current cgroup for the ASID.

I also renamed the capability to KVM_CAP_VM_MOVE_ENC_CONTEXT_FROM, since it is similar to KVM_CAP_VM_COPY_ENC_CONTEXT_FROM.

Paolo Bonzini (2):
KVM: generalize "bugged" VM to "dead" VM
KVM: SEV: provide helpers to charge/uncharge misc_cg

Peter Gonda (5):
KVM: SEV: Refactor out sev_es_state struct
KVM: SEV: Add support for SEV intra host migration
KVM: SEV: Add support for SEV-ES intra host migration
selftest: KVM: Add open sev dev helper
selftest: KVM: Add intra host migration tests

 Documentation/virt/kvm/api.rst                |  15 +
 arch/x86/include/asm/kvm_host.h               |   1 +
 arch/x86/kvm/svm/sev.c                        | 303 +++++++++++++++---
 arch/x86/kvm/svm/svm.c                        |   9 +-
 arch/x86/kvm/svm/svm.h                        |  28 +-
 arch/x86/kvm/x86.c                            |   8 +-
 include/linux/kvm_host.h                      |  12 +-
 include/uapi/linux/kvm.h                      |   1 +
 tools/testing/selftests/kvm/Makefile          |   3 +-
 .../testing/selftests/kvm/include/kvm_util.h  |   1 +
 .../selftests/kvm/include/x86_64/svm_util.h   |   2 +
 tools/testing/selftests/kvm/lib/kvm_util.c    |  24 +-
 tools/testing/selftests/kvm/lib/x86_64/svm.c  |  13 +
 .../selftests/kvm/x86_64/sev_migrate_tests.c  | 203 ++++++++++++
 virt/kvm/kvm_main.c                           |  10 +-
 15 files changed, 551 insertions(+), 82 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/x86_64/sev_migrate_tests.c
Signature · 1 line
2.27.0