|
From: | Xiaoyao Li |
Subject: | Re: [PATCH 2/3] i386: factor out x86_firmware_configure() |
Date: | Fri, 1 Apr 2022 13:28:31 +0800 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.6.1 |
On 4/1/2022 1:08 PM, Gerd Hoffmann wrote:
if (sev_enabled()) {^^^Can we remove the SEV check ...+ pc_system_parse_ovmf_flash(ptr, size); + + if (sev_enabled()) {... because we are still checking SEV here.Well, the two checks have slightly different purposes. The first checkwill probably become "if (sev || tdx)" soon,
Not soon for TDX since the hacky pflash interface to load TDVF is rejected.
whereas the second will become "if (sev) { ... } if (tdx) { ... }". We could remove the first. pc_system_parse_ovmf_flash() would run unconditionally then. Not needed, but should not have any bad side effects. take care, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |