From c76201ab52b1dd53823cd81449d17b72224f1623 Mon Sep 17 00:00:00 2001 From: "Dr. David Alan Gilbert" Date: Thu, 5 Nov 2015 18:11:18 +0000 Subject: 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 Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- include/migration/migration.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/migration/migration.h b/include/migration/migration.h index 329d535..fd018b7 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 */ -- cgit v1.1