]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Change handling for empty NVRAM path
authorAndrea Bolognani <abologna@redhat.com>
Tue, 31 Jan 2023 13:35:28 +0000 (14:35 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 3 Mar 2023 12:49:56 +0000 (13:49 +0100)
commitb3b81e60e451f2aa66bc362fd9e976f852c94dc3
tree497bb64dce83ab21d5d686b6c324f749b3c5c097
parente057a29b7615c8b79d5c6ce6da6a79c7c3ef55d4
conf: Change handling for empty NVRAM path

Right now, this results in loader->nvram being NULL, which is
reasonable: loader->nvramTemplate is stored separately, so if
the <nvram> element doesn't contain a path there is really no
useful information inside it.

However, this is about to change, so we will find ourselves
needing to hold on to loader->nvram even when no path is
present. Change the firmware handling code so that such a
scenario is dealt with appropriately.

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