Re: [RFC PATCH v2 21/44] i386/tdx: Create the TD HOB list upon machine init done

2021-08-26 Thread Gerd Hoffmann
Hi, > +static void tdvf_hob_add_memory_resources(TdvfHob *hob) > +{ > +/* Copy and sort the e820 tables to add them to the HOB. */ > +memcpy(e820_entries, e820_table, > + nr_e820_entries * sizeof(struct e820_entry)); > +qsort(e820_entries, nr_e820_entries, sizeof(struct e8

[RFC PATCH v2 21/44] i386/tdx: Create the TD HOB list upon machine init done

2021-07-07 Thread isaku . yamahata
From: Isaku Yamahata Build the TD HOB during machine late initialization, i.e. once guest memory is fully defined. Signed-off-by: Isaku Yamahata Co-developed-by: Sean Christopherson Signed-off-by: Sean Christopherson --- hw/i386/meson.build | 2 +- hw/i386/tdvf-hob.c| 166 +++