qemu-e2k/include
David Gibson e594c2ad1c xive: Improve irq claim/free path
spapr_xive_irq_claim() returns a bool to indicate if it succeeded.
But most of the callers and one callee use int return values and/or an
Error * with more information instead.  In any case, ints are a more
common idiom for success/failure states than bools (one never knows
what sense they'll be in).

So instead change to an int return value to indicate presence of error
+ an Error * to describe the details through that call chain.

It also didn't actually check if the irq was already claimed, which is
one of the primary purposes of the claim path, so do that.

spapr_xive_irq_free() also returned a bool... which no callers checked
and was always true, so just drop it.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
2019-10-04 19:08:23 +10:00
..
authz
block nbd: Grab aio context lock in more places 2019-09-24 07:30:19 -05:00
chardev
crypto crypto: define cleanup functions for use with g_autoptr 2019-08-22 10:47:12 +01:00
disas
exec Fixes for TLB_BSWAP 2019-09-27 11:10:49 +01:00
fpu
hw xive: Improve irq claim/free path 2019-10-04 19:08:23 +10:00
io socket: Add num connections to qio_net_listener_open_sync() 2019-09-03 23:24:42 +02:00
libdecnumber
migration migration: register_savevm_live doesn't need dev 2019-09-12 11:15:03 +01:00
monitor
net
qapi qapi: Make visit_next_list()'s comment less confusing 2019-09-24 11:03:44 +02:00
qemu qemu/compiler.h: Add qemu_build_not_reached 2019-09-25 10:19:57 -07:00
qom
scsi
standard-headers
sysemu kvm: split too big memory section on several memslots 2019-09-30 13:51:50 +02:00
ui ui/egl: fix framebuffer reads 2019-09-17 13:42:02 +02:00
elf.h
glib-compat.h
qemu-common.h cutils: Move size_to_str() from "qemu-common.h" to "qemu/cutils.h" 2019-09-19 11:57:34 +02:00
qemu-io.h
trace-tcg.h