spapr/kvm: Fix error handling in kvmppc_xive_pre_save()
commit42a92d925d03ec49dfdefb43c15b46c3ca55f9e4
authorGreg Kurz <groug@kaod.org>
Mon, 10 Aug 2020 16:54:54 +0000 (10 18:54 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 13 Aug 2020 11:03:35 +0000 (13 21:03 +1000)
tree9a99a2b9b678abf08d6de9422b22dc420cbe8b06
parentd55daadcb801f309556fdbab00b2653d20e26603
spapr/kvm: Fix error handling in kvmppc_xive_pre_save()

Now that kvmppc_xive_get_queues() returns a negative errno on failure, check
with that because it is preferred to local_err. And most of all, propagate
it because vmstate expects negative errnos.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <159707849455.1489912.6034461176847728064.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/spapr_xive_kvm.c