[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 15/41] migration: Create include for migration snaps
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 15/41] migration: Create include for migration snapshots |
Date: |
Wed, 26 Apr 2017 00:04:25 +0200 |
Start removing migration code from sysemu/sysemu.h.
Signed-off-by: Juan Quintela <address@hidden>
---
hmp.c | 1 +
include/migration/snapshot.h | 20 ++++++++++++++++++++
include/sysemu/sysemu.h | 3 ---
migration/savevm.c | 1 +
replay/replay-snapshot.c | 1 +
vl.c | 1 +
6 files changed, 24 insertions(+), 3 deletions(-)
create mode 100644 include/migration/snapshot.h
diff --git a/hmp.c b/hmp.c
index d81f71e..235cc2a 100644
--- a/hmp.c
+++ b/hmp.c
@@ -39,6 +39,7 @@
#include "qemu/cutils.h"
#include "qemu/error-report.h"
#include "hw/intc/intc.h"
+#include "migration/snapshot.h"
#ifdef CONFIG_SPICE
#include <spice/enums.h>
diff --git a/include/migration/snapshot.h b/include/migration/snapshot.h
new file mode 100644
index 0000000..a390fea
--- /dev/null
+++ b/include/migration/snapshot.h
@@ -0,0 +1,20 @@
+/*
+ * QEMU save vm functions
+ *
+ * Copyright IBM, Corp. 2008
+ *
+ * Authors:
+ * Anthony Liguori <address@hidden>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See
+ * the COPYING file in the top-level directory.
+ *
+ */
+
+#ifndef QEMU_MIGRATION_SAVEVM_H
+#define QEMU_MIGRATION_SAVEVM_H
+
+int save_vmstate(const char *name, Error **errp);
+int load_vmstate(const char *name, Error **errp);
+
+#endif
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index 3340202..0d496d3 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -75,9 +75,6 @@ void qemu_remove_exit_notifier(Notifier *notify);
void qemu_add_machine_init_done_notifier(Notifier *notify);
void qemu_remove_machine_init_done_notifier(Notifier *notify);
-int save_vmstate(const char *name, Error **errp);
-int load_vmstate(const char *name, Error **errp);
-
void qemu_announce_self(void);
/* Subcommands for QEMU_VM_COMMAND */
diff --git a/migration/savevm.c b/migration/savevm.c
index 1b2a83c..2f76a8a 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -36,6 +36,7 @@
#include "sysemu/sysemu.h"
#include "qemu/timer.h"
#include "migration/migration.h"
+#include "migration/snapshot.h"
#include "qemu-file-channel.h"
#include "postcopy-ram.h"
#include "qapi/qmp/qerror.h"
diff --git a/replay/replay-snapshot.c b/replay/replay-snapshot.c
index fdc4353..86ae8dd 100644
--- a/replay/replay-snapshot.c
+++ b/replay/replay-snapshot.c
@@ -19,6 +19,7 @@
#include "qapi/qmp/qstring.h"
#include "qemu/error-report.h"
#include "migration/vmstate.h"
+#include "migration/snapshot.h"
static void replay_pre_save(void *opaque)
{
diff --git a/vl.c b/vl.c
index 8b3ec2e..53a9d19 100644
--- a/vl.c
+++ b/vl.c
@@ -87,6 +87,7 @@ int main(int argc, char **argv)
#include "sysemu/blockdev.h"
#include "hw/block/block.h"
#include "migration/block.h"
+#include "migration/snapshot.h"
#include "sysemu/tpm.h"
#include "sysemu/dma.h"
#include "audio/audio.h"
--
2.9.3
- [Qemu-devel] [PATCH 07/41] migration: Move failover.h to migration/colo-failover.h, (continued)
- [Qemu-devel] [PATCH 07/41] migration: Move failover.h to migration/colo-failover.h, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 05/41] migration: Remove migration.h from colo.h, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 08/41] migration: Move page_cache.c to migration/, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 09/41] migration: Move qjson.h to migration/, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 10/41] migration: Move postcopy-ram.h to migration/, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 12/41] migration: Remove qemu-file.h from vmstate.h, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 13/41] migration: Remove vmstate.h from migration.h, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 11/41] migration: Split vmstate-types.c from vmstate.c, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 14/41] migration: migration.h was not needed, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 16/41] migration: Rename {save, load}_vmstate to {save, load}_snapshot, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 15/41] migration: Create include for migration snapshots,
Juan Quintela <=
- [Qemu-devel] [PATCH 17/41] migration: Create savevm.h for functions exported from savevm.c, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 18/41] migration: Split qemu-file.h, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 19/41] migration: Remove unneeded includes of migration/vmstate.h, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 20/41] migration: Export exec.c functions in its own file, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 21/41] migration: Export fd.c functions in its own file, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 22/41] migration: Export socket.c functions in its own file, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 23/41] migration: Export tls.c functions in its own file, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 24/41] migration: Export ram.c functions in its own file, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 25/41] migration: Export rdma.c functions in its own file, Juan Quintela, 2017/04/25