]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: add <os firmware='efi'> support
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 22 Feb 2021 09:46:13 +0000 (13:46 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Sat, 20 Mar 2021 03:53:45 +0000 (07:53 +0400)
commit63bed955dffb9163464a38e2ae14a20934bc8770
tree0dfee376b0e22aa29096eb714691d54a2fb3fb5e
parentdd0529b319b2e778287708d5bd1c5629d12d88db
bhyve: add <os firmware='efi'> support

Implement "<os firmware='efi'>" support for bhyve driver.
As there are not really lot of options, try to find
"BHYVE_UEFI.fd" firmware which is installed by the
sysutils/uefi-edk2-bhyve FreeBSD port.

If not found, just use the first found firmware
in the firmwares directory (which is configurable via
config file).

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
17 files changed:
po/POTFILES.in
src/bhyve/bhyve_domain.c
src/bhyve/bhyve_firmware.c [new file with mode: 0644]
src/bhyve/bhyve_firmware.h [new file with mode: 0644]
src/bhyve/bhyve_process.c
src/bhyve/bhyve_process.h
src/bhyve/bhyve_utils.h
src/bhyve/meson.build
tests/bhyvefirmwaredata/empty/.keepme [new file with mode: 0644]
tests/bhyvefirmwaredata/three_firmwares/BHYVE_UEFI.fd [new file with mode: 0644]
tests/bhyvefirmwaredata/three_firmwares/BHYVE_UEFI_CSM.fd [new file with mode: 0644]
tests/bhyvefirmwaredata/three_firmwares/refind_x64.efi [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-firmware-efi.args [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-firmware-efi.ldargs [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-firmware-efi.xml [new file with mode: 0644]
tests/bhyvexml2argvmock.c
tests/bhyvexml2argvtest.c