]> git.proxmox.com Git - mirror_qemu.git/commit
ppc/kvm: change kvmppc_get_htab_fd() to return -errno on error
authorGreg Kurz <groug@kaod.org>
Fri, 15 Sep 2017 13:16:10 +0000 (15:16 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Sep 2017 03:05:41 +0000 (13:05 +1000)
commit82be8e7394b31fd2d740651365b8ebdd0c847529
treec762b6a2511d090f6c485d0b9d5e876308de35b0
parent58b62835863db2164002ad843455045c29bcb029
ppc/kvm: change kvmppc_get_htab_fd() to return -errno on error

When kvmppc_get_htab_fd() fails, its return value is propagated up to
qemu_savevm_state_iterate() or to qemu_savevm_state_complete_precopy().
All savevm handlers expect to receive a negative errno on error.

Let's patch kvmppc_get_htab_fd() accordingly.

While here, let's change htab_load() in the spapr code to also
propagate the error, since it doesn't make sense to abort() if
we couldn't get the htab fd from KVM.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
target/ppc/kvm.c