]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: generate NVRAM bhyve arguments
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Wed, 7 May 2025 18:25:56 +0000 (20:25 +0200)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 20 May 2025 16:24:52 +0000 (18:24 +0200)
commitc7d1bbd9a489adcc5e01a2514e212496916ee40c
treefb820e930c8168fea8936fa3d8a1c9dcd17aaef7
parent24bdf9a15fae340d98a10c8a84a0e23670b23821
bhyve: generate NVRAM bhyve arguments

Currently, bhyve bootrom specification looks like this:

 bhyve ... -l bootrom,/path/to/firmware.fd

In addition to that, it supports specifying the VARS files using:

 -l bootrom,/path/to/firmware.fd,/path/to/my_domain_VARS.fd

Update virBhyveProcessBuildBhyveCmd() to include the VARS file if NVRAM
is specified in the domain XML.

Additionally, support copying this file from the specified template. To
do that, introduce the bhyveProcessPrepareHost() and related helpers.
They are currently not doing anything but NVRAM preparations, but should
be useful for other host-side related tasks in the future.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/bhyve/bhyve_command.c
src/bhyve/bhyve_process.c
src/bhyve/bhyve_process.h