From: Tom Lendacky <thomas.lendacky@amd.com>
To: Dionna Amalie Glaze <dionnaglaze@google.com>,
"Kalra, Ashish" <ashish.kalra@amd.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
the arch/x86 maintainers <x86@kernel.org>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH 1/2] x86/sev: Add KVM commands for instance certs
Date: Thu, 13 Oct 2022 07:58:07 -0500 [thread overview]
Message-ID: <24eb9e75-5f0e-6936-eb29-c2a88b141fdb@amd.com> (raw)
In-Reply-To: <CAAH4kHacW+hd8vB8QgkTjdw6+z-0ngjCqgr=zuGTwqqRnqUPQw@mail.gmail.com>
On 10/12/22 20:02, Dionna Amalie Glaze wrote:
>>>> + /* Page-align the length */
>>>> + length = (params.certs_len + PAGE_SIZE - 1) & PAGE_MASK;
>>>
>>> Probably can use PAGE_ALIGN() here.
>>>
>
> Ah, thanks. Will add in v2.
>
>>
>> Though, one thing i don't understand is that why do we need to issue
>> the SNP_GUEST_REQUEST to FW if we are going to return the VMM
>> overriden certs back to the guest ?
>>
>> Thanks,
>> Ashish
>
> If I'm reading the spec right, certs are supposed to come along with
> the guest request when the user issues an extended guest request. If
> the length is correct, we issue the command to get the report and we
> simply override what the psp returns for the certs.
The SNP Extended Guest Request doesn't override anything from the PSP, it
just supplies additional data associated with the MSG_REPORT_REQ so that
an additional call does not have to be made to obtain the certificate
chain needed validate the report.
The idea is to not have to make two calls, since, theoretically, it is
possible for the guest to be migrated in between a MSG_REPORT_REQ call and
the call to obtain the certificates, at which point the VCEK would not match.
Thanks,
Tom
>
> Is that your understanding too? If so, are you saying there's a bug in
> this implementation?
>
>
prev parent reply other threads:[~2022-10-13 12:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-02 0:04 Dionna Glaze
2022-09-02 0:04 ` [PATCH 2/2] x86/sev: Document KVM_SEV_SNP_{G,S}ET_CERTS Dionna Glaze
2022-10-12 23:39 ` [PATCH 1/2] x86/sev: Add KVM commands for instance certs Kalra, Ashish
2022-10-13 0:42 ` Kalra, Ashish
2022-10-13 1:02 ` Dionna Amalie Glaze
2022-10-13 12:58 ` Tom Lendacky [this message]
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=24eb9e75-5f0e-6936-eb29-c2a88b141fdb@amd.com \
--to=thomas.lendacky@amd.com \
--cc=ashish.kalra@amd.com \
--cc=dionnaglaze@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.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
Powered by JetHome