diff options
author | Greg Kurz | 2020-09-14 14:35:00 +0200 |
---|---|---|
committer | David Gibson | 2020-10-09 01:15:06 +0200 |
commit | cfdc52747390af88086094e51ddc7f8fbeea330e (patch) | |
tree | 875d5bd08e648b6d1c91d9478074fe624f014550 /include/hw/ppc | |
parent | spapr: Simplify error handling in prop_get_fdt() (diff) | |
download | qemu-cfdc52747390af88086094e51ddc7f8fbeea330e.tar.gz qemu-cfdc52747390af88086094e51ddc7f8fbeea330e.tar.xz qemu-cfdc52747390af88086094e51ddc7f8fbeea330e.zip |
spapr: Add a return value to spapr_set_vcpu_id()
As recommended in "qapi/error.h", return true on success and false on
failure. This allows to reduce error propagation overhead in the callers.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20200914123505.612812-11-groug@kaod.org>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc')
-rw-r--r-- | include/hw/ppc/spapr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index 194f3b9d07..02f3c29838 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -902,7 +902,7 @@ void spapr_do_system_reset_on_cpu(CPUState *cs, run_on_cpu_data arg); #define HTAB_SIZE(spapr) (1ULL << ((spapr)->htab_shift)) int spapr_get_vcpu_id(PowerPCCPU *cpu); -void spapr_set_vcpu_id(PowerPCCPU *cpu, int cpu_index, Error **errp); +bool spapr_set_vcpu_id(PowerPCCPU *cpu, int cpu_index, Error **errp); PowerPCCPU *spapr_find_cpu(int vcpu_id); int spapr_caps_pre_load(void *opaque); |