mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tests: Add firmware descriptor for edk2 on riscv64
It's available as part of the edk2-riscv64 Fedora package. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
47d34ffb26
commit
a4fbb7bcc7
@ -6,7 +6,9 @@
|
||||
<vcpu max='8'/>
|
||||
<iothreads supported='yes'/>
|
||||
<os supported='yes'>
|
||||
<enum name='firmware'/>
|
||||
<enum name='firmware'>
|
||||
<value>efi</value>
|
||||
</enum>
|
||||
<loader supported='yes'>
|
||||
<value>/obviously/fake/firmware1.fd</value>
|
||||
<value>/obviously/fake/firmware2.fd</value>
|
||||
|
@ -5,7 +5,9 @@
|
||||
<arch>riscv64</arch>
|
||||
<iothreads supported='yes'/>
|
||||
<os supported='yes'>
|
||||
<enum name='firmware'/>
|
||||
<enum name='firmware'>
|
||||
<value>efi</value>
|
||||
</enum>
|
||||
<loader supported='yes'>
|
||||
<value>/obviously/fake/firmware1.fd</value>
|
||||
<value>/obviously/fake/firmware2.fd</value>
|
||||
|
@ -6,7 +6,9 @@
|
||||
<vcpu max='512'/>
|
||||
<iothreads supported='yes'/>
|
||||
<os supported='yes'>
|
||||
<enum name='firmware'/>
|
||||
<enum name='firmware'>
|
||||
<value>efi</value>
|
||||
</enum>
|
||||
<loader supported='yes'>
|
||||
<value>/obviously/fake/firmware1.fd</value>
|
||||
<value>/obviously/fake/firmware2.fd</value>
|
||||
|
@ -5,7 +5,9 @@
|
||||
<arch>riscv64</arch>
|
||||
<iothreads supported='yes'/>
|
||||
<os supported='yes'>
|
||||
<enum name='firmware'/>
|
||||
<enum name='firmware'>
|
||||
<value>efi</value>
|
||||
</enum>
|
||||
<loader supported='yes'>
|
||||
<value>/obviously/fake/firmware1.fd</value>
|
||||
<value>/obviously/fake/firmware2.fd</value>
|
||||
|
@ -0,0 +1,33 @@
|
||||
{
|
||||
"description": "UEFI firmware for RISC-V virtual machines",
|
||||
"interface-types": [
|
||||
"uefi"
|
||||
],
|
||||
"mapping": {
|
||||
"device": "flash",
|
||||
"mode" : "split",
|
||||
"executable": {
|
||||
"filename": "/usr/share/edk2/riscv/RISCV_VIRT_CODE.qcow2",
|
||||
"format": "qcow2"
|
||||
},
|
||||
"nvram-template": {
|
||||
"filename": "/usr/share/edk2/riscv/RISCV_VIRT_VARS.qcow2",
|
||||
"format": "qcow2"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"architecture": "riscv64",
|
||||
"machines": [
|
||||
"virt",
|
||||
"virt-*"
|
||||
]
|
||||
}
|
||||
],
|
||||
"features": [
|
||||
|
||||
],
|
||||
"tags": [
|
||||
|
||||
]
|
||||
}
|
@ -93,6 +93,7 @@ testFWPrecedence(const void *opaque G_GNUC_UNUSED)
|
||||
PREFIX "/share/qemu/firmware/50-edk2-loongarch64.json",
|
||||
PREFIX "/share/qemu/firmware/50-edk2-ovmf-4m-qcow2-x64-nosb.json",
|
||||
PREFIX "/share/qemu/firmware/50-edk2-ovmf-x64-microvm.json",
|
||||
PREFIX "/share/qemu/firmware/50-edk2-riscv-qcow2.json",
|
||||
PREFIX "/share/qemu/firmware/51-edk2-aarch64-raw.json",
|
||||
PREFIX "/share/qemu/firmware/51-edk2-ovmf-2m-raw-x64-nosb.json",
|
||||
PREFIX "/share/qemu/firmware/52-edk2-aarch64-verbose-qcow2.json",
|
||||
@ -272,6 +273,7 @@ mymain(void)
|
||||
DO_PARSE_TEST("usr/share/qemu/firmware/50-edk2-loongarch64.json");
|
||||
DO_PARSE_TEST("usr/share/qemu/firmware/50-edk2-ovmf-4m-qcow2-x64-nosb.json");
|
||||
DO_PARSE_TEST("usr/share/qemu/firmware/50-edk2-ovmf-x64-microvm.json");
|
||||
DO_PARSE_TEST("usr/share/qemu/firmware/50-edk2-riscv-qcow2.json");
|
||||
DO_PARSE_TEST("usr/share/qemu/firmware/51-edk2-aarch64-raw.json");
|
||||
DO_PARSE_TEST("usr/share/qemu/firmware/51-edk2-ovmf-2m-raw-x64-nosb.json");
|
||||
DO_PARSE_TEST("usr/share/qemu/firmware/52-edk2-aarch64-verbose-qcow2.json");
|
||||
@ -332,6 +334,9 @@ mymain(void)
|
||||
"/usr/share/edk2/aarch64/QEMU_EFI-pflash.qcow2:/usr/share/edk2/aarch64/vars-template-pflash.qcow2:"
|
||||
"/usr/share/edk2/aarch64/QEMU_EFI-pflash.raw:/usr/share/edk2/aarch64/vars-template-pflash.raw",
|
||||
VIR_DOMAIN_OS_DEF_FIRMWARE_EFI);
|
||||
DO_SUPPORTED_TEST("virt", VIR_ARCH_RISCV64, false,
|
||||
"/usr/share/edk2/riscv/RISCV_VIRT_CODE.qcow2:/usr/share/edk2/riscv/RISCV_VIRT_VARS.qcow2",
|
||||
VIR_DOMAIN_OS_DEF_FIRMWARE_EFI);
|
||||
|
||||
virFileWrapperClearPrefixes();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user