From: Paolo Bonzini <pbonzini@redhat.com>
To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: seanjc@google.com, srutherford@google.com, joro@8bytes.org,
brijesh.singh@amd.com, thomas.lendacky@amd.com,
venu.busireddy@oracle.com
Subject: [PATCH v2 0/2] KVM: x86: guest interface for SEV live migration
Date: Wed, 21 Apr 2021 13:37:14 -0400 [thread overview]
Message-ID: <20210421173716.1577745-1-pbonzini@redhat.com> (raw)
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
next reply other threads:[~2021-04-21 17:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-21 17:37 Paolo Bonzini [this message]
2021-04-21 17:37 ` [PATCH v2 1/2] KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall Paolo Bonzini
2021-04-27 22:04 ` Sean Christopherson
2021-04-21 17:37 ` [PATCH v2 2/2] KVM: x86: add MSR_KVM_MIGRATION_CONTROL Paolo Bonzini
2021-04-27 22:14 ` Sean Christopherson
2021-04-28 19:56 ` Steve Rutherford
2021-04-28 20:06 ` Sean Christopherson
2021-04-29 10:09 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210421173716.1577745-1-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=brijesh.singh@amd.com \
--cc=joro@8bytes.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=seanjc@google.com \
--cc=srutherford@google.com \
--cc=thomas.lendacky@amd.com \
--cc=venu.busireddy@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).