[PATCH v2 0/2] KVM: x86: guest interface for SEV live migration

From: Paolo Bonzini
Date: Wed Apr 21 2021 - 13:37:27 EST


This is a reviewed version of the guest interface (hypercall+MSR)
for SEV live migration. The differences lie mostly in the API
for userspace. In particular:

- the CPUID feature is not exposed in KVM_GET_SUPPORTED_CPUID

- the hypercall must be enabled manually with KVM_ENABLE_CAP

- the MSR has sensible behavior if not filtered (reads as zero,
writes must leave undefined bits as zero or they #GP)

v1->v2: reviewed KVM_CAP_EXIT_HYPERCALL semantics,
split CPUID bits so that the migration control MSR
can be used for TDX

Ashish Kalra (1):
KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall

Paolo Bonzini (1):
KVM: x86: add MSR_KVM_MIGRATION_CONTROL

Documentation/virt/kvm/api.rst | 19 ++++++++++
Documentation/virt/kvm/cpuid.rst | 9 +++++
Documentation/virt/kvm/hypercalls.rst | 15 ++++++++
Documentation/virt/kvm/msr.rst | 10 ++++++
arch/x86/include/asm/kvm_host.h | 2 ++
arch/x86/include/uapi/asm/kvm_para.h | 5 +++
arch/x86/kvm/cpuid.c | 3 +-
arch/x86/kvm/x86.c | 50 +++++++++++++++++++++++++++
include/uapi/linux/kvm.h | 1 +
include/uapi/linux/kvm_para.h | 1 +
10 files changed, 114 insertions(+), 1 deletion(-)

--
2.26.2