Files
libvirt/tests
Andrea Bolognani 563a47ea7f qemu_firmware: Allow matching both UEFI and BIOS for ROM loader
Currently we apply a 1:1 mapping between loader type and firmware
type: ROM can only match BIOS and pflash can only match UEFI.

That was accurate at the time when the check was introduced, but
is no longer the case today: the Intel TDX build of edk2, for
example, is loaded as a ROM but it still provides an UEFI
implementation to the guest.

Tweak the matching logic so that a ROM loader is allowed to match
both BIOS and UEFI firmware descriptors.

The firmware-manual-efi-tdx test case benefits from this change,
as all the missing information is now correctly filled in.

This will also solve an issue reported to the list, where
firmware builds targeting the confidential VM use case on aarch64
would not be usable at all, due to the way UEFI and ACPI are
depending on each other on the architecture.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2026-01-09 00:26:17 +01:00
..
2023-04-06 12:48:22 +02:00
2023-12-14 17:10:22 +01:00
2024-03-12 17:37:51 +01:00
2024-03-12 17:37:51 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2025-07-02 13:54:04 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
…
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2023-04-06 12:48:22 +02:00
2025-07-02 13:54:04 +02:00
2022-06-16 06:43:58 +02:00
2025-07-02 13:54:04 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2024-03-14 15:17:48 +01:00
2024-09-24 08:24:00 +02:00
2022-06-16 06:43:58 +02:00
2023-03-13 13:29:07 +01:00
2025-07-02 13:54:04 +02:00
2025-07-02 13:54:04 +02:00
2025-07-02 13:54:04 +02:00
2022-06-16 06:43:58 +02:00
2025-11-20 15:09:10 +01:00
2022-06-16 06:43:58 +02:00