On Wed, Jan 24, 2024 at 20:37:46 +0100, Andrea Bolognani wrote:
> Factor out the existing code.
>
> Signed-off-by: Andrea Bolognani <[email protected]>
> ---
> src/qemu/qemu_domain.c | 23 +++++++++++++++--------
> 1 file changed, 15 insertions(+), 8 deletions(-)
>
> diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
> index c9d213dd7b..8a37cda464 100644
> --- a/src/qemu/qemu_domain.c
> +++ b/src/qemu/qemu_domain.c
> @@ -4346,6 +4346,19 @@ qemuDomainDefaultSerialModel(const virDomainDef *def,
> }
>
>
> +static int
static virDomainPanicModel
> +qemuDomainDefaultPanicModel(const virDomainDef *def)
> +{
> + if (qemuDomainIsPSeries(def))
> + return VIR_DOMAIN_PANIC_MODEL_PSERIES;
> +
> + if (ARCH_IS_S390(def->os.arch))
> + return VIR_DOMAIN_PANIC_MODEL_S390;
> +
> + return VIR_DOMAIN_PANIC_MODEL_ISA;
> +}
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]