diff options
author | Thomas Huth | 2016-07-21 11:21:34 +0200 |
---|---|---|
committer | David Gibson | 2016-07-25 02:19:30 +0200 |
commit | c573fc03da65e35bf44bce0448ea12801e3631ac (patch) | |
tree | 6a8679e649d02b372b71255e1d93c43a47870bdf /target-ppc/translate_init.c | |
parent | ppc: Huge page detection mechanism fixes - Episode III (diff) | |
download | qemu-c573fc03da65e35bf44bce0448ea12801e3631ac.tar.gz qemu-c573fc03da65e35bf44bce0448ea12801e3631ac.tar.xz qemu-c573fc03da65e35bf44bce0448ea12801e3631ac.zip |
hw/ppc/spapr: Make sure to close the htab_fd when migration is canceled
When canceling a migration process, we currently do not close the
HTAB migration file descriptor since htab_save_complete() is never
called in that case. So we leave the migration process with a
dangling htab_fd value around, and this causes any further migration
attempts to fail. To fix this issue, simply make sure that the
htab_fd is closed during the migration cleanup stage. And since the
cleanup() function is also called when migration succeeds, we can
also remove the call to close_htab_fd() from the htab_save_complete()
function.
Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1354341
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target-ppc/translate_init.c')
0 files changed, 0 insertions, 0 deletions