]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Filter firmwares based on format
authorAndrea Bolognani <abologna@redhat.com>
Tue, 31 Jan 2023 16:46:58 +0000 (17:46 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 3 Mar 2023 12:51:04 +0000 (13:51 +0100)
commit0569c6a13cf7fd884d96c512eb6668c109c473aa
tree908f0d066006b54a2db6697e2e9255eb3dd8127e
parent9c398406731ce0155997db2dab6bb1db4cd110c6
qemu: Filter firmwares based on format

If the user has requested a specific firmware format, then
all firmware builds that are not in that format should be
ignored while looking for matches.

The legacy hardcoded firmware list predates firmware
descriptors and their "format" field, so we can safely
assume that all builds listed in there are in raw format.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_firmware.c