On Thu, May 12, 2022 at 11:17:48AM +0800, Xiaoyao Li wrote: > For each TDVF sections, QEMU needs to copy the content to guest > private memory via KVM API (KVM_TDX_INIT_MEM_REGION). > > Introduce a field @mem_ptr for TdxFirmwareEntry to track the memory > pointer of each TDVF sections. So that QEMU can add/copy them to guest > private memory later. > > TDVF sections can be classified into two groups: > - Firmware itself, e.g., BFV and CFV, that locates separated from guest > RAM. It's memory pointer is the bios pointer. > > - Sections located at guest RAM, e.g., TEMP_MEM and TD_HOB. > mmap a new memory range for them. > > Signed-off-by: Xiaoyao Li <xiaoyao.li@xxxxxxxxx> Acked-by: Gerd Hoffmann <kraxel@xxxxxxxxxx>