[PATCH 0/6] qemu: Fixes to firmware selection

Andrea Bolognani posted 6 patches 3 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20240708155142.91500-1-abologna@redhat.com
src/qemu/qemu_firmware.c                      | 17 +++++++++
.../qemu_5.2.0-tcg-virt.riscv64.xml           |  4 ++-
.../qemu_5.2.0-virt.riscv64.xml               |  4 ++-
.../qemu_8.0.0-tcg-virt.riscv64.xml           |  4 ++-
.../qemu_8.0.0-virt.riscv64.xml               |  4 ++-
.../firmware/60-edk2-ovmf-x64-inteltdx.json   | 10 +++---
.../qemu/firmware/50-edk2-riscv-qcow2.json    | 33 +++++++++++++++++
.../firmware/60-edk2-ovmf-x64-inteltdx.json   | 10 +++---
tests/qemufirmwaretest.c                      |  7 +++-
...efi-riscv64.riscv64-latest.abi-update.args | 34 ++++++++++++++++++
...-efi-riscv64.riscv64-latest.abi-update.xml | 28 +++++++++++++++
.../firmware-auto-efi-riscv64.xml             | 14 ++++++++
...ware-auto-efi-rw-pflash.x86_64-latest.err} |  0
...mware-auto-efi-rw-pflash.x86_64-latest.xml | 35 +++++++++++++++++++
.../firmware-auto-efi-rw-pflash.xml           | 18 ++++++++++
tests/qemuxmlconftest.c                       |  3 +-
16 files changed, 207 insertions(+), 18 deletions(-)
create mode 100644 tests/qemufirmwaredata/usr/share/qemu/firmware/50-edk2-riscv-qcow2.json
create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-riscv64.riscv64-latest.abi-update.args
create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-riscv64.riscv64-latest.abi-update.xml
create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-riscv64.xml
rename tests/qemuxmlconfdata/{firmware-auto-efi-rw.x86_64-latest.abi-update.err => firmware-auto-efi-rw-pflash.x86_64-latest.err} (100%)
create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-rw-pflash.x86_64-latest.xml
create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-rw-pflash.xml
[PATCH 0/6] qemu: Fixes to firmware selection
Posted by Andrea Bolognani 3 months, 3 weeks ago

Andrea Bolognani (6):
  tests: Update firmware descriptors
  tests: Add more firmware selection coverage
  qemu: Filter firmware images by type
  qemu: ROM firmware images are always readonly
  tests: Add firmware descriptor for edk2 on riscv64
  tests: Add test for UEFI autoselection on riscv64

 src/qemu/qemu_firmware.c                      | 17 +++++++++
 .../qemu_5.2.0-tcg-virt.riscv64.xml           |  4 ++-
 .../qemu_5.2.0-virt.riscv64.xml               |  4 ++-
 .../qemu_8.0.0-tcg-virt.riscv64.xml           |  4 ++-
 .../qemu_8.0.0-virt.riscv64.xml               |  4 ++-
 .../firmware/60-edk2-ovmf-x64-inteltdx.json   | 10 +++---
 .../qemu/firmware/50-edk2-riscv-qcow2.json    | 33 +++++++++++++++++
 .../firmware/60-edk2-ovmf-x64-inteltdx.json   | 10 +++---
 tests/qemufirmwaretest.c                      |  7 +++-
 ...efi-riscv64.riscv64-latest.abi-update.args | 34 ++++++++++++++++++
 ...-efi-riscv64.riscv64-latest.abi-update.xml | 28 +++++++++++++++
 .../firmware-auto-efi-riscv64.xml             | 14 ++++++++
 ...ware-auto-efi-rw-pflash.x86_64-latest.err} |  0
 ...mware-auto-efi-rw-pflash.x86_64-latest.xml | 35 +++++++++++++++++++
 .../firmware-auto-efi-rw-pflash.xml           | 18 ++++++++++
 tests/qemuxmlconftest.c                       |  3 +-
 16 files changed, 207 insertions(+), 18 deletions(-)
 create mode 100644 tests/qemufirmwaredata/usr/share/qemu/firmware/50-edk2-riscv-qcow2.json
 create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-riscv64.riscv64-latest.abi-update.args
 create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-riscv64.riscv64-latest.abi-update.xml
 create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-riscv64.xml
 rename tests/qemuxmlconfdata/{firmware-auto-efi-rw.x86_64-latest.abi-update.err => firmware-auto-efi-rw-pflash.x86_64-latest.err} (100%)
 create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-rw-pflash.x86_64-latest.xml
 create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-rw-pflash.xml

-- 
2.45.2
Re: [PATCH 0/6] qemu: Fixes to firmware selection
Posted by Ján Tomko 3 months, 3 weeks ago
On a Monday in 2024, Andrea Bolognani wrote:
>
>
>Andrea Bolognani (6):
>  tests: Update firmware descriptors
>  tests: Add more firmware selection coverage
>  qemu: Filter firmware images by type
>  qemu: ROM firmware images are always readonly
>  tests: Add firmware descriptor for edk2 on riscv64
>  tests: Add test for UEFI autoselection on riscv64
>
> src/qemu/qemu_firmware.c                      | 17 +++++++++
> .../qemu_5.2.0-tcg-virt.riscv64.xml           |  4 ++-
> .../qemu_5.2.0-virt.riscv64.xml               |  4 ++-
> .../qemu_8.0.0-tcg-virt.riscv64.xml           |  4 ++-
> .../qemu_8.0.0-virt.riscv64.xml               |  4 ++-
> .../firmware/60-edk2-ovmf-x64-inteltdx.json   | 10 +++---
> .../qemu/firmware/50-edk2-riscv-qcow2.json    | 33 +++++++++++++++++
> .../firmware/60-edk2-ovmf-x64-inteltdx.json   | 10 +++---
> tests/qemufirmwaretest.c                      |  7 +++-
> ...efi-riscv64.riscv64-latest.abi-update.args | 34 ++++++++++++++++++
> ...-efi-riscv64.riscv64-latest.abi-update.xml | 28 +++++++++++++++
> .../firmware-auto-efi-riscv64.xml             | 14 ++++++++
> ...ware-auto-efi-rw-pflash.x86_64-latest.err} |  0
> ...mware-auto-efi-rw-pflash.x86_64-latest.xml | 35 +++++++++++++++++++
> .../firmware-auto-efi-rw-pflash.xml           | 18 ++++++++++
> tests/qemuxmlconftest.c                       |  3 +-
> 16 files changed, 207 insertions(+), 18 deletions(-)
> create mode 100644 tests/qemufirmwaredata/usr/share/qemu/firmware/50-edk2-riscv-qcow2.json
> create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-riscv64.riscv64-latest.abi-update.args
> create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-riscv64.riscv64-latest.abi-update.xml
> create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-riscv64.xml
> rename tests/qemuxmlconfdata/{firmware-auto-efi-rw.x86_64-latest.abi-update.err => firmware-auto-efi-rw-pflash.x86_64-latest.err} (100%)
> create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-rw-pflash.x86_64-latest.xml
> create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-rw-pflash.xml
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano