Re: [PATCH v2] virt: tdx-guest: Add Quote generation support using TSM_REPORTS
From: Dave Hansen
Date: Wed Sep 20 2023 - 14:11:46 EST
On 9/20/23 11:08, Kuppuswamy Sathyanarayanan wrote:
> My thinking is to allocate it when we really need it. We only need this memory if the
> GetQuote hypercall is successful. We can also allocate it at the top and there is
> nothing wrong with it, but it will not be used in failure cases. Since top declarations
> are not a requirement, why allocate it early?
Do folks *REALLY* want this patch set to be a trailblazer where we can
all nitpick the nuances of how we want to deal with this snazzy new
__free() mechanism?
Or, do you want it to be old and boring and do it the way we've done it
forever?
Your choice.