From c55ea39efc013456c4c7a1cf0109620673b2044d Mon Sep 17 00:00:00 2001 Message-ID: From: Andrea Bolognani Date: Mon, 15 Dec 2025 19:56:19 +0100 Subject: [PATCH] tests: Add firmware-auto-efi-format-nvram-raw-loader-path This test case demonstrates an issue with the current implementation of firmware autoselection. libvirt would normally be able to find the firmware descriptor for the binary mentioned in the domain XML, but the fact that at the same time we're asking for the NVRAM file to be of a different format throws a spanner in the works. Of course there is no requirement for the format of the NVRAM file to match that of the NVRAM template, so the fact that libvirt is unable to produce a working configuration out of this input is an issues that will be addressed in an upcoming commit. Signed-off-by: Andrea Bolognani Reviewed-by: Michal Privoznik (cherry picked from commit ab92d773397b2b344bb568690baa30951408d43a) https://issues.redhat.com/browse/RHEL-82645 Signed-off-by: Andrea Bolognani --- ...at-nvram-raw-loader-path.x86_64-latest.err | 1 + ...at-nvram-raw-loader-path.x86_64-latest.xml | 36 +++++++++++++++++++ ...-auto-efi-format-nvram-raw-loader-path.xml | 19 ++++++++++ tests/qemuxmlconftest.c | 1 + 4 files changed, 57 insertions(+) create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-loader-path.x86_64-latest.err create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-loader-path.x86_64-latest.xml create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-loader-path.xml diff --git a/tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-loader-path.x86_64-latest.err b/tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-loader-path.x86_64-latest.err new file mode 100644 index 0000000000..3edb2b3451 --- /dev/null +++ b/tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-loader-path.x86_64-latest.err @@ -0,0 +1 @@ +operation failed: Unable to find 'efi' firmware that is compatible with the current configuration diff --git a/tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-loader-path.x86_64-latest.xml b/tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-loader-path.x86_64-latest.xml new file mode 100644 index 0000000000..6bb1ad1507 --- /dev/null +++ b/tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-loader-path.x86_64-latest.xml @@ -0,0 +1,36 @@ + + guest + 63840878-0deb-4095-97e6-fc444d9bc9fa + 1048576 + 1048576 + 1 + + hvm + /usr/share/edk2/ovmf/OVMF_CODE_4M.secboot.qcow2 + + + + + + + + qemu64 + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + + +
+ + + + +