Re: [PATCH v9 5/6] x86/sev: Add SNP-specific unaccepted memory support

From: Tom Lendacky
Date: Tue Sep 12 2023 - 10:49:17 EST


On 9/12/23 07:17, Kirill A. Shutemov wrote:
On Thu, Sep 07, 2023 at 11:50:15AM -0500, Tom Lendacky wrote:
From a quick look at

  [PATCHv14 9/9] x86/tdx: Add unaccepted memory support

it actually seems very similar for INTEL_TDX_GUEST.

Ideally UNACCEPTED_MEMORY would not assume EFI either, but the
implementation actually clearly does.

@Kirill, is this something you are interested in having as well?

Unaccepted memory is an EFI feature I don't see how UNACCEPTED_MEMORY can
be untied from EFI. If there's other (non-EFI) environment that has
similar concept, sure we can try to generalize it beyond EFI.

Sorry, didn't mean to include the EFI related statement there. Agreed that unaccepted memory is only an EFI feature right now.


TDX guest is only runs with EFI firmware so far, so depending onf EFI and
EFI_STUB is fine for TDX>

Right, SEV initially only ran on EFI firmware, but others have managed to get it working in other environments. So I was just wondering if you would also want to split the UNACCEPTED_MEMORY out for TDX similar to what was suggested for SEV.

Thanks,
Tom