> +/*
> + * 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, "
> +
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