On Sat, Feb 19, 2022 at 07:56:38PM +0800, Min Xu wrote:
> RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429
> 
> When host VMM create the Td guest, the system memory informations are
> stored in TdHob, which is a memory region described in Tdx metadata.
> The system memory region in TdHob should be accepted before it can be
> accessed. So the newly added function (ProcessTdxHobList) is to process
> the TdHobList to accept the memory. Because TdHobList is provided by
> host VMM which is not trusted, so its content should be checked before
> it is consumed by TDVF.
> 
> Because ProcessTdxHobList is to be called in SEC phase, so
> PlatformInitLib.inf is updated to support SEC.
> 
> Note: In this patch it is BSP which accepts the pages. So there maybe
> boot performance issue. There are some mitigations to this issue, such
> as lazy accept, 2M accept page size, etc. We will re-visit here in the
> future.
> 
> PcdTdxAcceptPageSize is added for page accepting. Currently TDX supports
> 4K and 2M accept page size. The default value is 2M.
> 
> Tdx guest is only supported in X64. So for IA32 ProcessTdxHobList
> just returns EFI_UNSUPPORTED.

Acked-by: Gerd Hoffmann <[email protected]>



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86856): https://edk2.groups.io/g/devel/message/86856
Mute This Topic: https://groups.io/mt/89252052/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to