]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Filter firmware images by type
authorAndrea Bolognani <abologna@redhat.com>
Fri, 5 Jul 2024 15:30:27 +0000 (17:30 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 19 Jul 2024 13:18:38 +0000 (15:18 +0200)
commitf13b3f8098dd9d6ef04df19a05465766857d73d2
treee79aba54e4c7840b44d0bd5dc7d6b57b15d01437
parentb14c97e00710753fa2de609740bde18258586090
qemu: Filter firmware images by type

If the configuration explicitly requests a specific type of
firmware image, be it pflash or ROM, we should ignore all images
that are not of that type.

If no specific type has been requested, of course, any type is
considered a match and the selection will be based upon the
other attributes.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_firmware.c
tests/qemuxmlconfdata/firmware-auto-efi-rw-pflash.x86_64-latest.args [deleted file]
tests/qemuxmlconfdata/firmware-auto-efi-rw-pflash.x86_64-latest.err [new file with mode: 0644]
tests/qemuxmlconfdata/firmware-auto-efi-rw-pflash.x86_64-latest.xml
tests/qemuxmlconftest.c