aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2015-11-05 18:10:55 +0000
committerJuan Quintela <quintela@redhat.com>2015-11-10 15:00:26 +0100
commiteb59db53a4f23420f127ec7aad2a672f787df697 (patch)
treee186e3bf3fdea54ee6f705f3050dfca4cb5b07ba /include
parentc31b098f64c5bbbc26350b9b5cf98ae2d2888de7 (diff)
downloadqemu-eb59db53a4f23420f127ec7aad2a672f787df697.zip
qemu-eb59db53a4f23420f127ec7aad2a672f787df697.tar.gz
qemu-eb59db53a4f23420f127ec7aad2a672f787df697.tar.bz2
postcopy: OS support test
Provide a check to see if the OS we're running on has all the bits needed for postcopy. Creates postcopy-ram.c which will get most of the other helpers we need. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/migration/postcopy-ram.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/migration/postcopy-ram.h b/include/migration/postcopy-ram.h
new file mode 100644
index 0000000..d81934f
--- /dev/null
+++ b/include/migration/postcopy-ram.h
@@ -0,0 +1,19 @@
+/*
+ * Postcopy migration for RAM
+ *
+ * Copyright 2013 Red Hat, Inc. and/or its affiliates
+ *
+ * Authors:
+ * Dave Gilbert <dgilbert@redhat.com>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+#ifndef QEMU_POSTCOPY_RAM_H
+#define QEMU_POSTCOPY_RAM_H
+
+/* Return true if the host supports everything we need to do postcopy-ram */
+bool postcopy_ram_supported_by_host(void);
+
+#endif