]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: support use of stateless EFI firmware
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 22 Jul 2022 15:59:43 +0000 (16:59 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 26 Jul 2022 14:41:44 +0000 (15:41 +0100)
commitef53798ab645496002aa8da2b3650dde19832f3d
tree57c1e30b4cd9062d41692043cbe34092633fc442
parent578ac25c6ae86d3f655ad902d1bcb57beff0e936
qemu: support use of stateless EFI firmware

When the <loader stateless='yes'/> attribute is set, the QEMU driver
needs to do three things

 - Avoid looking for an NVRAM template
 - Avoid auto-populating an <nvram/> path
 - Find firmware descriptors with mode=stateless instead of mode=split

Note, the first thing happens automatically when we solve the second
thing.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_firmware.c
tests/qemuxml2argvdata/firmware-auto-efi-stateless.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvdata/firmware-auto-efi-stateless.xml [new file with mode: 0644]
tests/qemuxml2argvdata/firmware-manual-efi-stateless.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvdata/firmware-manual-efi-stateless.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c