]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Add tests for SEV firmware selection
authorAndrea Bolognani <abologna@redhat.com>
Wed, 30 Jul 2025 12:56:00 +0000 (14:56 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 24 Sep 2025 12:05:12 +0000 (14:05 +0200)
commit20813b87b7425d66bd889221ca2fe52e6c01777c
tree8d179faeb3a9fee05ebadb886e2f201773638807
parent6d35a0b554ad8999dbf222078b5fe8459ba91bf4
tests: Add tests for SEV firmware selection

One of the new test cases demonstrates how firmware
autoselection doesn't currently work correctly for domains
using SEV-SNP: the descriptor for a suitable firmware exists,
and yet it doesn't get picked up.

Another test cases shows that, while firmware autoselection
succeeds for non-SNP SEV domains, the results are not the
expected ones: the generic (stateful) edk2 build is used
instead of the SEV-specific (stateless) one. This will be
addressed in a future patch by updating the descriptors.

Finally, one test case provides coverage for the uncommon
scenario of stateful firmware being explicitly requested by
the user.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
tests/qemuxmlconfdata/firmware-auto-efi-sev-snp.x86_64-latest+amdsev.err [new file with mode: 0644]
tests/qemuxmlconfdata/firmware-auto-efi-sev-snp.x86_64-latest+amdsev.xml [new file with mode: 0644]
tests/qemuxmlconfdata/firmware-auto-efi-sev-snp.xml [new file with mode: 0644]
tests/qemuxmlconfdata/firmware-auto-efi-sev-stateful.x86_64-latest+amdsev.args [new file with mode: 0644]
tests/qemuxmlconfdata/firmware-auto-efi-sev-stateful.x86_64-latest+amdsev.xml [new file with mode: 0644]
tests/qemuxmlconfdata/firmware-auto-efi-sev-stateful.xml [new file with mode: 0644]
tests/qemuxmlconfdata/firmware-auto-efi-sev.x86_64-latest+amdsev.args [new file with mode: 0644]
tests/qemuxmlconfdata/firmware-auto-efi-sev.x86_64-latest+amdsev.xml [new file with mode: 0644]
tests/qemuxmlconfdata/firmware-auto-efi-sev.xml [new file with mode: 0644]
tests/qemuxmlconftest.c