3 Oct
2025
3 Oct
'25
11:39 a.m.
On Thu, Sep 25, 2025 at 20:07:16 +0200, Andrea Bolognani via Devel wrote:
Switch from the current approach, in which an initial and likely poor default is picked and then a better one later overwrites it, to the more common and easy to reason about pattern where the value is returned directly as soon as possible.
To make things easier to understand and more maintainable, the various architectures for which we have explicit handling are each taken care of separately, with no falling through to the default behavior.
Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- src/qemu/qemu_domain.c | 108 +++++++++++++++++++++++------------------ 1 file changed, 62 insertions(+), 46 deletions(-)
Reviewed-by: Peter Krempa <pkrempa@redhat.com>