mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 15:00:07 +00:00
32b9d8b0ae
Currently the 'nvram_template' entry is mandatory when parsing the firmware descriptor based on flash. QEMU is extending the firmware descriptor spec to make the 'nvram_template' optional, depending on the value of a new 'mode' field: - "split" * "executable" contains read-only CODE * "nvram_template" contains read-write VARS - "combined" * "executable" contains read-write CODE and VARs * "nvram_template" not present - "stateless" * "executable" contains read-only CODE and VARs * "nvram_template" not present In the latter case, the guest OS can write vars but the firmware will make no attempt to persist them, so any changes will be lost at poweroff. For now we parse this new 'mode' but discard any firmware which is not 'mode=split' when matching for a domain. In the tests we have a mixture of files with and without the mode attribute. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
32 lines
620 B
JSON
32 lines
620 B
JSON
{
|
|
"description": "OVMF for x86_64, with SEV, without SB, without SMM, with NO varstore",
|
|
"interface-types": [
|
|
"uefi"
|
|
],
|
|
"mapping": {
|
|
"device": "flash",
|
|
"mode": "stateless",
|
|
"executable": {
|
|
"filename": "/usr/share/OVMF/OVMF.sev.fd",
|
|
"format": "raw"
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"architecture": "x86_64",
|
|
"machines": [
|
|
"pc-q35-*"
|
|
]
|
|
}
|
|
],
|
|
"features": [
|
|
"acpi-s3",
|
|
"amd-sev",
|
|
"amd-sev-es",
|
|
"verbose-dynamic"
|
|
],
|
|
"tags": [
|
|
|
|
]
|
|
}
|