Re: [RFC PATCH v4 23/36] i386/tdx: Setup the TD HOB list

2022-06-02 Thread Xiaoyao Li
On 5/24/2022 3:56 PM, Gerd Hoffmann wrote: Hi, +static void tdvf_hob_add_mmio_resources(TdvfHob *hob) +{ +MachineState *ms = MACHINE(qdev_get_machine()); +X86MachineState *x86ms = X86_MACHINE(ms); +PCIHostState *pci_host; +uint64_t start, end; +uint64_t mcfg_base, mcfg_si

Re: [RFC PATCH v4 23/36] i386/tdx: Setup the TD HOB list

2022-05-24 Thread Gerd Hoffmann
Hi, > +static void tdvf_hob_add_mmio_resources(TdvfHob *hob) > +{ > +MachineState *ms = MACHINE(qdev_get_machine()); > +X86MachineState *x86ms = X86_MACHINE(ms); > +PCIHostState *pci_host; > +uint64_t start, end; > +uint64_t mcfg_base, mcfg_size; > +Object *host; > + > +

Re: [RFC PATCH v4 23/36] i386/tdx: Setup the TD HOB list

2022-05-12 Thread Isaku Yamahata
On Thu, May 12, 2022 at 11:17:50AM +0800, Xiaoyao Li wrote: > The TD HOB list is used to pass the information from VMM to TDVF. The TD > HOB must include PHIT HOB and Resource Descriptor HOB. More details can > be found in TDVF specification and PI specification. > > Build the TD HOB in TDX's ma

[RFC PATCH v4 23/36] i386/tdx: Setup the TD HOB list

2022-05-11 Thread Xiaoyao Li
The TD HOB list is used to pass the information from VMM to TDVF. The TD HOB must include PHIT HOB and Resource Descriptor HOB. More details can be found in TDVF specification and PI specification. Build the TD HOB in TDX's machine_init_done callback. Co-developed-by: Isaku Yamahata Signed-off-b