aboutsummaryrefslogtreecommitdiff
path: root/include/migration/postcopy-ram.h
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2015-11-05 18:11:04 +0000
committerJuan Quintela <quintela@redhat.com>2015-11-10 15:00:27 +0100
commitf0a227ade4b0331c9e12fc01f8b74e2531fd496d (patch)
tree23a8a5aa128c2ebb7410146c3c40aacbbe244765 /include/migration/postcopy-ram.h
parent1caddf8a819d83027d897997c0af10c426f88633 (diff)
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 <dgilbert@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/migration/postcopy-ram.h')
-rw-r--r--include/migration/postcopy-ram.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/migration/postcopy-ram.h b/include/migration/postcopy-ram.h
index f87020c582..b10c03db6e 100644
--- a/include/migration/postcopy-ram.h
+++ b/include/migration/postcopy-ram.h
@@ -17,6 +17,12 @@
bool postcopy_ram_supported_by_host(void);
/*
+ * Make all of RAM sensitive to accesses to areas that haven't yet been written
+ * and wire up anything necessary to deal with it.
+ */
+int postcopy_ram_enable_notify(MigrationIncomingState *mis);
+
+/*
* Initialise postcopy-ram, setting the RAM to a state where we can go into
* postcopy later; must be called prior to any precopy.
* called from ram.c's similarly named ram_postcopy_incoming_init