summaryrefslogtreecommitdiffstats
path: root/hw/xen/xen_pt_msi.c
diff options
context:
space:
mode:
authorGreg Kurz2020-08-10 18:54:33 +0200
committerDavid Gibson2020-08-13 13:00:52 +0200
commitf9a548edf2a54f59c37032dee3763f532e968fee (patch)
tree38f7b1d87cce2397281742a2457261f1620f2ae3 /hw/xen/xen_pt_msi.c
parentspapr/xive: Rework error handling of kvmppc_xive_cpu_[gs]et_state() (diff)
downloadqemu-f9a548edf2a54f59c37032dee3763f532e968fee.tar.gz
qemu-f9a548edf2a54f59c37032dee3763f532e968fee.tar.xz
qemu-f9a548edf2a54f59c37032dee3763f532e968fee.zip
spapr/xive: Rework error handling of kvmppc_xive_[gs]et_queue_config()
Since kvm_device_access() returns a negative errno on failure, convert kvmppc_xive_get_queue_config() and kvmppc_xive_set_queue_config() to use it for error checking. This allows to get rid of the local_err boilerplate. Propagate the return value so that callers may use it as well to check failures. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <159707847357.1489912.2032291280645236480.stgit@bahia.lan> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/xen/xen_pt_msi.c')
0 files changed, 0 insertions, 0 deletions