]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Sometimes the default panic model doesn't exist
authorAndrea Bolognani <abologna@redhat.com>
Tue, 27 Aug 2024 14:44:31 +0000 (16:44 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 3 Sep 2024 12:07:47 +0000 (14:07 +0200)
commit6d92185a49f5c4107964d2d46a4aecc788646dd9
tree6f9fbae91dd34732c5e189ce78af993c7542e011
parent9e1970efa5ac281febffabd57ac5b849117cccb4
qemu: Sometimes the default panic model doesn't exist

Right now the fallback behavior is to use MODEL_ISA if we
haven't been able to find a better match, but that's not very
useful as we're still going to hit an error later, when
QEMU_CAPS_DEVICE_PANIC is not found at Validate time.

Instead of doing that, allow MODEL_DEFAULT to get all the
way to Validate and report an error upon encountering it.

The reported error changes slightly, but other than that the
set of configurations that are allowed and blocked remains
the same.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_validate.c
tests/qemuxmlconfdata/aarch64-panic-no-model.aarch64-latest.err
tests/qemuxmlconfdata/riscv64-panic-no-model.riscv64-latest.err