From 72aea6c308d9885d16ea0b81d982cfe256048677 Mon Sep 17 00:00:00 2001 Message-ID: <72aea6c308d9885d16ea0b81d982cfe256048677.1772815312.git.jdenemar@redhat.com> From: Andrea Bolognani Date: Mon, 15 Dec 2025 20:29:11 +0100 Subject: [PATCH] tests: Add firmware-auto-efi-format-nvram-raw-nvramtemplate-path This test case demonstrates an issue with the current implementation of firmware autoselection. There is no requirement for the format of the NVRAM file (raw in this case) to match that of the NVRAM template (qcow2 in this case), and yet libvirt incorrectly rejects the configuration. The issue will be addressed in an upcoming commit. Signed-off-by: Andrea Bolognani Reviewed-by: Michal Privoznik (cherry picked from commit a4f33d72287f68789f1d288d78b872d42dfe3b12) https://issues.redhat.com/browse/RHEL-82645 Signed-off-by: Andrea Bolognani --- ...m-raw-nvramtemplate-path.x86_64-latest.err | 1 + ...m-raw-nvramtemplate-path.x86_64-latest.xml | 36 +++++++++++++++++++ ...fi-format-nvram-raw-nvramtemplate-path.xml | 18 ++++++++++ tests/qemuxmlconftest.c | 1 + 4 files changed, 56 insertions(+) create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-nvramtemplate-path.x86_64-latest.err create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-nvramtemplate-path.x86_64-latest.xml create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-nvramtemplate-path.xml diff --git a/tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-nvramtemplate-path.x86_64-latest.err b/tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-nvramtemplate-path.x86_64-latest.err new file mode 100644 index 0000000000..3edb2b3451 --- /dev/null +++ b/tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-nvramtemplate-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-nvramtemplate-path.x86_64-latest.xml b/tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-nvramtemplate-path.x86_64-latest.xml new file mode 100644 index 0000000000..8bb8f1b26c --- /dev/null +++ b/tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-raw-nvramtemplate-path.x86_64-latest.xml @@ -0,0 +1,36 @@ + + guest + 63840878-0deb-4095-97e6-fc444d9bc9fa + 1048576 + 1048576 + 1 + + hvm + + + + + + + + + qemu64 + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + + +
+ + + + +