]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix matching for read/write firmware
authorAndrea Bolognani <abologna@redhat.com>
Thu, 31 Jul 2025 14:50:46 +0000 (16:50 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 24 Sep 2025 12:15:26 +0000 (14:15 +0200)
commit2800ce362003c7d41d0f8414bad4fcae909ed2e0
tree1f3d2e7f7f9ebe66e6b8b2121c2ece92a874a893
parent0b8daf9f68c31284a97919e847f2bee7c7046a6c
qemu: Fix matching for read/write firmware

We currently always pick a read-only firmware unless we are
explicitly asked for a read/write one, which is probably what
most people expect anyway but doesn't really make sense
otherwise: if no specific requirement has been provided by the
user, both read-only and read/write firmwares should be
allowed to match.

This won't result in any change in practice, since distros are
not shipping read/write builds of edk2 anyway. If they started
doing that, it would be their responsibility to ensure that
they are ordered after the read-only builds.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
src/qemu/qemu_firmware.c