]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Refactor default panic model
authorAndrea Bolognani <abologna@redhat.com>
Tue, 27 Aug 2024 13:03:31 +0000 (15:03 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 3 Sep 2024 12:06:11 +0000 (14:06 +0200)
commit9e1970efa5ac281febffabd57ac5b849117cccb4
tree7752111a24c539066a2bef57c7cfca4c9ec43e60
parentf22583c6c4030a9e3bb3a33556e7c0d3b3d9a9d1
qemu: Refactor default panic model

Perform decisions based on the architecture and machine type
in a single place instead of duplicating them.

This technically adds new behavior for MODEL_ISA in
qemuDomainDefAddDefaultDevices(), but it doesn't make any
difference functionally since we don't set addPanicDevice
outside of ppc64(le) and s390(x). If we did, the lack of
handling for that value would be a latent bug.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c