[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/3] i386: factor out x86_firmware_configure()
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH 2/3] i386: factor out x86_firmware_configure() |
Date: |
Fri, 1 Apr 2022 07:08:18 +0200 |
> > 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 check
will probably become "if (sev || tdx)" soon, 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
- Re: [PATCH 2/3] i386: factor out x86_firmware_configure(),
Gerd Hoffmann <=