Re: [edk2-devel] [PATCH V2 21/28] OvmfPkg: Update PlatformPei to support TDX

2021-10-14 Thread Yao, Jiewen
> Sent: Friday, October 15, 2021 1:46 PM > To: Yao, Jiewen > Cc: devel@edk2.groups.io; Xu, Min M ; Ard Biesheuvel > ; Justen, Jordan L ; > Brijesh Singh ; Erdem Aktas > ; James Bottomley ; Tom > Lendacky > Subject: Re: [edk2-devel] [PATCH V2 21/28] OvmfPkg: Update PlatformPe

Re: [edk2-devel] [PATCH V2 21/28] OvmfPkg: Update PlatformPei to support TDX

2021-10-14 Thread Gerd Hoffmann
Hi, > The original mailbox location is in low memory. If we do not relocate > to high memory, then the OS will see a hole in low memory. Well, both low and high memory to be exact. qemu maps the whole firmware image below 4G, and mirrors the topmost 128k (including memfd + reset vector) below

Re: [edk2-devel] [PATCH V2 21/28] OvmfPkg: Update PlatformPei to support TDX

2021-10-14 Thread Yao, Jiewen
Yao, Jiewen ; Tom Lendacky > > Subject: Re: [edk2-devel] [PATCH V2 21/28] OvmfPkg: Update PlatformPei to > support TDX > > Hi, > > > 2. Relocate mailbox > > At the beginning of system boot, a 4K-aligned, 4K-size memory (Td > > mailbox) is pre-allocated b

Re: [edk2-devel] [PATCH V2 21/28] OvmfPkg: Update PlatformPei to support TDX

2021-10-12 Thread Gerd Hoffmann
Hi, > 2. Relocate mailbox > At the beginning of system boot, a 4K-aligned, 4K-size memory (Td > mailbox) is pre-allocated by host VMM. BSP & APs do the page accept > together in that memory region. > After that TDVF is designed to relocate the mailbox to a 4K-aligned, > 4K-size memory