[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v2 15/44] i386/tdx: Add hook to require generic device lo
From: |
Gerd Hoffmann |
Subject: |
Re: [RFC PATCH v2 15/44] i386/tdx: Add hook to require generic device loader |
Date: |
Thu, 26 Aug 2021 12:41:29 +0200 |
> + /*
> + * 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, "
> + "use -device loader,file=<path>");
> + exit(1);
> + }
I suspect that catches only "-drive if=pflash,..."
but not "-machine pflash0=..."
Also: why does tdx not support flash?
Should be explained in the commit message.
thanks,
Gerd
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [RFC PATCH v2 15/44] i386/tdx: Add hook to require generic device loader,
Gerd Hoffmann <=