diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2015-11-05 18:11:18 +0000 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2015-11-10 15:00:28 +0100 |
commit | c76201ab52b1dd53823cd81449d17b72224f1623 (patch) | |
tree | 2fd45f9768cb9fe05975d87b6d01459f6f2c8ee4 /include/migration/migration.h | |
parent | c4faeed2313e2bf9aa3694544bd211c15e28c164 (diff) | |
download | qemu-c76201ab52b1dd53823cd81449d17b72224f1623.zip |
Start up a postcopy/listener thread ready for incoming page data
The loading of a device state (during postcopy) may access guest
memory that's still on the source machine and thus might need
a page fill; split off a separate thread that handles the incoming
page data so that the original incoming migration code can finish
off the device data.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/migration/migration.h')
-rw-r--r-- | include/migration/migration.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h index 329d5358d5..fd018b74a2 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -93,6 +93,10 @@ struct MigrationIncomingState { QemuThread fault_thread; QemuSemaphore fault_thread_sem; + bool have_listen_thread; + QemuThread listen_thread; + QemuSemaphore listen_thread_sem; + /* For the kernel to send us notifications */ int userfault_fd; /* To tell the fault_thread to quit */ |