KVM: SVM: Add support for KVM_SEV_SEND_CANCEL command
authorSteve Rutherford <srutherford@google.com>
Tue, 20 Apr 2021 09:01:20 +0000 (05:01 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Apr 2021 16:20:04 +0000 (12:20 -0400)
commit5569e2e7a650dfffd4df7635662b2f92162d6501
tree4aa5ae8c39930a69ba7a1be4aa14fd7a43d28dee
parentfddecf6a237ee464db7a1771fad6507d8c180c03
KVM: SVM: Add support for KVM_SEV_SEND_CANCEL command

After completion of SEND_START, but before SEND_FINISH, the source VMM can
issue the SEND_CANCEL command to stop a migration. This is necessary so
that a cancelled migration can restart with a new target later.

Reviewed-by: Nathan Tempelman <natet@google.com>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Steve Rutherford <srutherford@google.com>
Message-Id: <20210412194408.2458827-1-srutherford@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/amd-memory-encryption.rst
arch/x86/kvm/svm/sev.c
drivers/crypto/ccp/sev-dev.c
include/linux/psp-sev.h
include/uapi/linux/kvm.h