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

From: Nakajima, Jun
Date: Mon Jul 25 2022 - 17:57:03 EST



> On Jul 25, 2022, at 1:23 PM, Hansen, Dave <dave.hansen@xxxxxxxxx> 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.

---
Jun