Re: [PATCH v8 5/5] x86/tdx: Add Quote generation support

Sathyanarayanan Kuppuswamy
2022-07-25T22:06:45Z

Hi Jun,

On 7/25/22 2:56 PM, Nakajima, Jun wrote:
>
>> On Jul 25, 2022, at 1:23 PM, Hansen, Dave <dave.hansen@intel.com> wrote:
>>
>> On 7/25/22 13:19, Nakajima, Jun wrote:
>>> 3. Need to be available in minimal/early runtime environments,
>>> including pre-boot, e.g. guest BIOS, no user-space yet.
>>
>> Jun, are we talking about the same thing here? This patch is for a
>> guest userspace -> guest kernel ABI. This facility is *FOR* userspace.
>> It can't possibly be used before userspace is running.
>>
>> I'm horribly confused.
>
> I responded to one of Sathya’s questions, especially why we have the GetQuote in GHCI.
> And the hypervisor needs to implement that anyway because it doesn’t matter (or doesn’t know) whether the TD guest is running in BIOS, the kernel, or userspace. Of course, the facility in this patch is for userspace, but we don’t want to suggest to implement two different GetQuote code paths for guests, depending on the guest state, e.g. in the OS (kernel or userspace) or guest BIOS.

Ok. Since both host and QE need to support GetQuote hypercall to
handle attestation request from the BIOS, QE/host may want to use
the same communication model for requests from the guest user space
as well.

>
> ---
> Jun
>
>
>
>

--
Sathyanarayanan Kuppuswamy
Linux Kernel Developer