]> git.proxmox.com Git - mirror_qemu.git/commit - migration/savevm.c
migration: allow fault thread to pause
authorPeter Xu <peterx@redhat.com>
Wed, 2 May 2018 10:47:22 +0000 (18:47 +0800)
committerJuan Quintela <quintela@redhat.com>
Tue, 15 May 2018 18:24:27 +0000 (20:24 +0200)
commit3a7804c3065ac79ff6e609e75ff2765d79f64f85
treef6e71bb7685a6462714221fe0908132c842122d0
parent14b1742eaaad1148c5b421eea0ae7e74d823e630
migration: allow fault thread to pause

Allows the fault thread to stop handling page faults temporarily. When
network failure happened (and if we expect a recovery afterwards), we
should not allow the fault thread to continue sending things to source,
instead, it should halt for a while until the connection is rebuilt.

When the dest main thread noticed the failure, it kicks the fault thread
to switch to pause state.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180502104740.12123-7-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c
migration/migration.h
migration/postcopy-ram.c
migration/savevm.c
migration/trace-events