From: Paolo Bonzini <pbonzini@redhat.com>
To: jejb@linux.ibm.com, Steve Rutherford <srutherford@google.com>
Cc: Ashish Kalra <ashish.kalra@amd.com>,
Nathan Tempelman <natet@google.com>,
Tom Lendacky <thomas.lendacky@amd.com>, X86 ML <x86@kernel.org>,
KVM list <kvm@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Sean Christopherson <seanjc@google.com>,
David Rientjes <rientjes@google.com>,
Brijesh Singh <brijesh.singh@amd.com>,
dovmurik@linux.vnet.ibm.com, lersek@redhat.com,
frankeh@us.ibm.com
Subject: Re: [RFC v2] KVM: x86: Support KVM VMs sharing SEV context
Date: Fri, 9 Apr 2021 10:14:09 +0200 [thread overview]
Message-ID: <ed7c38cd-4cfd-9f36-dd81-b8d699fd498d@redhat.com> (raw)
In-Reply-To: <75863fa3f1c93ffda61f1cddfef0965a0391ef60.camel@linux.ibm.com>
On 09/04/21 03:18, James Bottomley wrote:
> If you want to share ASIDs you have to share the firmware that the
> running VM has been attested to. Once the VM moves from LAUNCH to
> RUNNING, the PSP won't allow the VMM to inject any more firmware or do
> any more attestations.
I think Steve is suggesting to just change the RIP of the mirror VM,
which would work for SEV but not SEV-ES (the RAM migration helper won't
*suffice* for SEV-ES, but perhaps you could use the PSP to migrate the
VMSA and the migration helper for the rest?).
If you want to use a single firmware binary, SEC does almost no I/O
accesses (the exception being the library constructor from
SourceLevelDebugPkg's SecPeiDebugAgentLib), so you probably can:
- detect the migration helper hardware in PlatformPei, either from
fw_cfg or based on the lack of it
- either divert execution to the migration helper through
gEfiEndOfPeiSignalPpiGuid, or if it's too late add a new boot mode and
PPI to DxeLoadCore.
Paolo
> What you mirror after this point can thus only
> contain what has already been measured or what the guest added. This
> is why we think there has to be a new entry path into the VM for the
> mirror vCPU.
next prev parent reply other threads:[~2021-04-09 8:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-16 1:40 [RFC v2] KVM: x86: Support KVM VMs sharing SEV context Nathan Tempelman
2021-04-02 11:58 ` Ashish Kalra
2021-04-02 14:20 ` Paolo Bonzini
2021-04-08 17:43 ` James Bottomley
2021-04-08 19:48 ` Steve Rutherford
2021-04-08 21:15 ` James Bottomley
2021-04-09 0:41 ` Steve Rutherford
2021-04-09 1:18 ` James Bottomley
2021-04-09 8:14 ` Paolo Bonzini [this message]
2021-04-09 20:24 ` Steve Rutherford
2021-04-02 14:25 ` Paolo Bonzini
2021-04-02 18:17 ` Sean Christopherson
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=ed7c38cd-4cfd-9f36-dd81-b8d699fd498d@redhat.com \
--to=pbonzini@redhat.com \
--cc=ashish.kalra@amd.com \
--cc=brijesh.singh@amd.com \
--cc=dovmurik@linux.vnet.ibm.com \
--cc=frankeh@us.ibm.com \
--cc=jejb@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=lersek@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=natet@google.com \
--cc=rientjes@google.com \
--cc=seanjc@google.com \
--cc=srutherford@google.com \
--cc=thomas.lendacky@amd.com \
--cc=x86@kernel.org \
/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