From f0a227ade4b0331c9e12fc01f8b74e2531fd496d Mon Sep 17 00:00:00 2001 From: "Dr. David Alan Gilbert" Date: Thu, 5 Nov 2015 18:11:04 +0000 Subject: postcopy: ram_enable_notify to switch on userfault Mark the area of RAM as 'userfault' Start up a fault-thread to handle any userfaults we might receive from it (to be filled in later) Signed-off-by: Dr. David Alan Gilbert Reviewed-by: David Gibson Reviewed-by: Juan Quintela Reviewed-by: Amit Shah Signed-off-by: Juan Quintela --- include/migration/migration.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/migration/migration.h') diff --git a/include/migration/migration.h b/include/migration/migration.h index 6e42b58dc3..2ad0d2b9dd 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -86,6 +86,9 @@ struct MigrationIncomingState { */ QemuEvent main_thread_load_event; + QemuThread fault_thread; + QemuSemaphore fault_thread_sem; + /* For the kernel to send us notifications */ int userfault_fd; QEMUFile *to_src_file; -- cgit v1.2.3