qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 06/11] Move CPU related functions to cpus.h


From: Blue Swirl
Subject: [Qemu-devel] [PATCH 06/11] Move CPU related functions to cpus.h
Date: Fri, 8 Apr 2011 23:46:32 +0300

Move declarations of CPU related functions to cpus.h. Adjust the only user.

Signed-off-by: Blue Swirl <address@hidden>
---
 cpus.h   |    4 ++++
 savevm.c |    1 +
 sysemu.h |    4 ----
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/cpus.h b/cpus.h
index e021126..6fdeb0d 100644
--- a/cpus.h
+++ b/cpus.h
@@ -8,6 +8,10 @@ void resume_all_vcpus(void);
 void pause_all_vcpus(void);
 void cpu_stop_current(void);

+void cpu_synchronize_all_states(void);
+void cpu_synchronize_all_post_reset(void);
+void cpu_synchronize_all_post_init(void);
+
 /* vl.c */
 extern int smp_cores;
 extern int smp_threads;
diff --git a/savevm.c b/savevm.c
index 03fce62..be44fdb 100644
--- a/savevm.c
+++ b/savevm.c
@@ -82,6 +82,7 @@
 #include "migration.h"
 #include "qemu_socket.h"
 #include "qemu-queue.h"
+#include "cpus.h"

 #define SELF_ANNOUNCE_ROUNDS 5

diff --git a/sysemu.h b/sysemu.h
index a379024..6effd8a 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -64,10 +64,6 @@ int load_vmstate(const char *name);
 void do_delvm(Monitor *mon, const QDict *qdict);
 void do_info_snapshots(Monitor *mon);

-void cpu_synchronize_all_states(void);
-void cpu_synchronize_all_post_reset(void);
-void cpu_synchronize_all_post_init(void);
-
 void qemu_announce_self(void);

 void main_loop_wait(int nonblocking);
-- 
1.7.2.5

Attachment: 0006-Move-CPU-related-functions-to-cpus.h.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]