Re: [PATCH v3 5/9] qemu: Fix matching for stateless/combined firmware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/10/25 07:57, Andrea Bolognani via Devel wrote:
The current code assumes that a stateless firmware has to be
explicitly requested by the user, and should never be picked
otherwise. This means that, for example, domains configured to
use SEV-SNP are forced to explicitly request for the firmware
to be stateless.

Additionally, we assume that only split firmware is suitable
for the stateful use case, whereas a combined firmware image
would also do the job.

As a result of these changes, the failing SEV-SNP test case
that was added recently passes, and so do the test cases
requesting read/write firmware.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
  src/qemu/qemu_firmware.c                      | 40 ++++++++++++++-----
  ...ware-auto-efi-rw-pflash.x86_64-latest.args | 36 +++++++++++++++++
  ...mware-auto-efi-rw-pflash.x86_64-latest.err |  1 -
  ...mware-auto-efi-rw-pflash.x86_64-latest.xml |  6 ++-
  .../firmware-auto-efi-rw.x86_64-latest.args   | 36 +++++++++++++++++
  .../firmware-auto-efi-rw.x86_64-latest.err    |  1 -
  .../firmware-auto-efi-rw.x86_64-latest.xml    |  6 ++-
  ...auto-efi-sev-snp.x86_64-latest+amdsev.args | 36 +++++++++++++++++
  ...-auto-efi-sev-snp.x86_64-latest+amdsev.err |  1 -
  ...-auto-efi-sev-snp.x86_64-latest+amdsev.xml |  6 ++-
  tests/qemuxmlconftest.c                       |  5 +--
  11 files changed, 154 insertions(+), 20 deletions(-)
  create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-rw-pflash.x86_64-latest.args
  delete mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-rw-pflash.x86_64-latest.err
  create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-rw.x86_64-latest.args
  delete mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-rw.x86_64-latest.err
  create mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-sev-snp.x86_64-latest+amdsev.args
  delete mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-sev-snp.x86_64-latest+amdsev.err

Reviewed-by: Jim Fehlig <jfehlig@xxxxxxxx>

Regards,
Jim



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux