summaryrefslogtreecommitdiffstats
path: root/hw/core/cpu.c
diff options
context:
space:
mode:
authorGreg Kurz2020-08-10 18:55:08 +0200
committerDavid Gibson2020-08-13 13:05:06 +0200
commit2a8100cb61959e7a934049f2bd3a49a0f84a066b (patch)
tree2468784b1f35eb3f85100c1d0957f64f194abb25 /hw/core/cpu.c
parentspapr/xive: Fix error handling in kvmppc_xive_post_load() (diff)
downloadqemu-2a8100cb61959e7a934049f2bd3a49a0f84a066b.tar.gz
qemu-2a8100cb61959e7a934049f2bd3a49a0f84a066b.tar.xz
qemu-2a8100cb61959e7a934049f2bd3a49a0f84a066b.zip
ppc/xive: Fix error handling in vmstate_xive_tctx_*() callbacks
Now that kvmppc_xive_cpu_get_state() and kvmppc_xive_cpu_set_state() return negative errnos on failures, use that instead local_err because it is the recommended practice. Also return that instead of -1 since vmstate expects negative errnos. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <159707850840.1489912.14912810818646455474.stgit@bahia.lan> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/core/cpu.c')
0 files changed, 0 insertions, 0 deletions