[libvirt] [PATCH 0/5] qemu: Use FW descriptors to report FW image paths

Michal Privoznik mprivozn at redhat.com
Mon Aug 5 16:14:20 UTC 2019


It feels a bit odd to report a built in list of FW images when we have
FW descriptor files. Especially, when some weird architectures are
concerned. For instance, OVMF_CODE.fd is reported even for
non-x86_64/non-i386 arches, like ppc. But if FW descriptor files are
taken into the picture then no OVMF_CODE.fd is ever reported.

One can argue, that these patches are not necessary, because the whole
point of FW descriptor files is that users do not have to bother with
paths to FW images. And that is true. However, the whole ecosystem of
FW descriptor files allows sys admins and regular users to write their
own FW descriptor files and thus reporting what paths libvirt found
might come handy when writing those descriptors.

Michal Prívozník (5):
  virfirmware: Expose and define autoptr for virFirmwareFree
  qemu_firmware: Document qemuFirmwareGetSupported
  qemu_firmware: Extend qemuFirmwareGetSupported to return FW paths
  qemufirmwaretest: Test FW path getting through
    qemuFirmwareGetSupported()
  qemu: Use FW descriptors to report FW image paths

 src/libvirt_private.syms     |  1 +
 src/qemu/qemu_capabilities.c | 19 +++++++--
 src/qemu/qemu_firmware.c     | 81 +++++++++++++++++++++++++++++++++++-
 src/qemu/qemu_firmware.h     |  5 ++-
 src/util/virfirmware.c       |  2 +-
 src/util/virfirmware.h       |  5 +++
 tests/qemufirmwaretest.c     | 78 ++++++++++++++++++++++++++++++----
 7 files changed, 177 insertions(+), 14 deletions(-)

-- 
2.21.0




More information about the libvir-list mailing list