[PATCH 0/3] KVM: x86: guest interface for SEV live migration
From: Paolo Bonzini
Date: Tue Apr 20 2021 - 07:20: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)
Patch 1 is an unrelated cleanup, that was made moot by not
exposing the bit in KVM_GET_SUPPORTED_CPUID.
Paolo
Ashish Kalra (1):
KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall
Paolo Bonzini (2):
KVM: SEV: mask CPUID[0x8000001F].eax according to supported features
KVM: x86: add MSR_KVM_MIGRATION_CONTROL
Documentation/virt/kvm/api.rst | 11 ++++++
Documentation/virt/kvm/cpuid.rst | 6 ++++
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 | 4 +++
arch/x86/kvm/cpuid.c | 5 ++-
arch/x86/kvm/cpuid.h | 1 +
arch/x86/kvm/svm/svm.c | 7 ++++
arch/x86/kvm/x86.c | 48 +++++++++++++++++++++++++++
include/uapi/linux/kvm.h | 1 +
include/uapi/linux/kvm_para.h | 1 +
12 files changed, 110 insertions(+), 1 deletion(-)
--
2.26.2