This is different from most OVMF firmware builds in that there is no separate NVRAM variables store. The main image is readonly and does not persist variables. As such it uses the old style -bios config with QEMU rather than pflash. Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx> --- .../usr/share/qemu/firmware/62-ovmf-sev.json | 27 +++++++++++++++++++ tests/qemufirmwaretest.c | 4 ++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 tests/qemufirmwaredata/usr/share/qemu/firmware/62-ovmf-sev.json diff --git a/tests/qemufirmwaredata/usr/share/qemu/firmware/62-ovmf-sev.json b/tests/qemufirmwaredata/usr/share/qemu/firmware/62-ovmf-sev.json new file mode 100644 index 0000000000..02e5e1dae8 --- /dev/null +++ b/tests/qemufirmwaredata/usr/share/qemu/firmware/62-ovmf-sev.json @@ -0,0 +1,27 @@ +{ + "description": "OVMF for x86_64, with SEV, without SB, without SMM, with NO varstore", + "interface-types": [ + "uefi" + ], + "mapping": { + "device": "memory", + "filename": "/usr/share/OVMF/OVMF.sev.fd" + }, + "targets": [ + { + "architecture": "x86_64", + "machines": [ + "pc-q35-*" + ] + } + ], + "features": [ + "acpi-s3", + "amd-sev", + "amd-sev-es", + "verbose-dynamic" + ], + "tags": [ + + ] +} diff --git a/tests/qemufirmwaretest.c b/tests/qemufirmwaretest.c index cad4b6d383..45c27554f6 100644 --- a/tests/qemufirmwaretest.c +++ b/tests/qemufirmwaretest.c @@ -62,6 +62,7 @@ testFWPrecedence(const void *opaque G_GNUC_UNUSED) SYSCONFDIR "/qemu/firmware/40-ovmf-sb-keys.json", PREFIX "/share/qemu/firmware/50-ovmf-sb-keys.json", PREFIX "/share/qemu/firmware/61-ovmf.json", + PREFIX "/share/qemu/firmware/62-ovmf-sev.json", PREFIX "/share/qemu/firmware/70-aavmf.json", NULL }; @@ -250,7 +251,8 @@ mymain(void) DO_SUPPORTED_TEST("pc-q35-3.1", VIR_ARCH_X86_64, true, "/usr/share/seabios/bios-256k.bin:NULL:" "/usr/share/OVMF/OVMF_CODE.secboot.fd:/usr/share/OVMF/OVMF_VARS.secboot.fd:" - "/usr/share/OVMF/OVMF_CODE.fd:/usr/share/OVMF/OVMF_VARS.fd", + "/usr/share/OVMF/OVMF_CODE.fd:/usr/share/OVMF/OVMF_VARS.fd:" + "/usr/share/OVMF/OVMF.sev.fd:NULL", VIR_DOMAIN_OS_DEF_FIRMWARE_BIOS, VIR_DOMAIN_OS_DEF_FIRMWARE_EFI); DO_SUPPORTED_TEST("pc-q35-3.1", VIR_ARCH_I686, false, -- 2.33.1