]> git.proxmox.com Git - mirror_qemu.git/commit
accel-cpu: make cpu_realizefn return a bool
authorClaudio Fontana <cfontana@suse.de>
Mon, 22 Mar 2021 13:27:44 +0000 (14:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 10 May 2021 19:41:50 +0000 (15:41 -0400)
commit9ea057dc641b150ecbfd45acfe18fe043641a551
treecff91686711453fcaf8e5d1a286feb4c81d69ab8
parentce21726525da53053432b19e27e9fd2a49086d78
accel-cpu: make cpu_realizefn return a bool

overall, all devices' realize functions take an Error **errp, but return void.

hw/core/qdev.c code, which realizes devices, therefore does:

local_err = NULL;
dc->realize(dev, &local_err);
if (local_err != NULL) {
    goto fail;
}

However, we can improve at least accel_cpu to return a meaningful bool value.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210322132800.7470-9-cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/accel-common.c
cpu.c
include/hw/core/accel-cpu.h
include/qemu/accel.h
target/i386/host-cpu.c
target/i386/host-cpu.h
target/i386/kvm/kvm-cpu.c
target/i386/tcg/tcg-cpu.c