Re: [RFC PATCH v2 15/44] i386/tdx: Add hook to require generic device loader

2021-08-26 Thread Gerd Hoffmann
> +/* > + * Sanitiy check for tdx: > + * TDX uses generic loader to load bios instead of pflash. > + */ > +for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { > +if (drive_get(IF_PFLASH, 0, i)) { > +error_report("pflash not supported by VM type, " > +

[RFC PATCH v2 15/44] i386/tdx: Add hook to require generic device loader

2021-07-07 Thread isaku . yamahata
From: Sean Christopherson Add a hook for TDX to denote that the TD Virtual Firmware must be provided via the "generic" device loader. Error out if pflash is used in conjuction with TDX. Suggested-by: Isaku Yamahata Signed-off-by: Sean Christopherson Signed-off-by: Isaku Yamahata --- hw/i386