exec: Create include for target_page_size()
authorJuan Quintela <quintela@redhat.com>
Mon, 24 Apr 2017 18:50:19 +0000 (20:50 +0200)
committerJuan Quintela <quintela@redhat.com>
Thu, 18 May 2017 17:20:59 +0000 (19:20 +0200)
That is the only function that we need from exec.c, and having to
include the whole sysemu.h for this.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---

/me leans to be less sloppy with copyright notices
thanks Dave

exec.c
include/exec/target_page.h [new file with mode: 0644]
include/sysemu/sysemu.h
migration/migration.c
migration/postcopy-ram.c
migration/savevm.c

diff --git a/exec.c b/exec.c
index 96e3ac98e158061990bb91d7e5892973a10c1232..de2961b58346b05ab32938b22cc8fb75f34e1824 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -24,6 +24,7 @@
 #include "qemu/cutils.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/target_page.h"
 #include "tcg.h"
 #include "hw/qdev-core.h"
 #if !defined(CONFIG_USER_ONLY)
diff --git a/include/exec/target_page.h b/include/exec/target_page.h
new file mode 100644 (file)
index 0000000..626eda8
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * Target page sizes and friends for non target files
+ *
+ * Copyright (c) 2017 Red Hat Inc
+ *
+ * Authors:
+ *  David Alan Gilbert <dgilbert@redhat.com>
+ *  Juan Quintela <quintela@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 EXEC_TARGET_PAGE_H
+#define EXEC_TARGET_PAGE_H
+
+size_t qemu_target_page_size(void);
+
+#endif
index 765358ea458f50f0f4e0dc05b3e7811be96dd848..ed8fe3bf34fc17236cb9c05e350f72b6a546e464 100644 (file)
@@ -67,7 +67,6 @@ int qemu_reset_requested_get(void);
 void qemu_system_killed(int signal, pid_t pid);
 void qemu_system_reset(bool report);
 void qemu_system_guest_panicked(GuestPanicInformation *info);
-size_t qemu_target_page_size(void);
 
 void qemu_add_exit_notifier(Notifier *notify);
 void qemu_remove_exit_notifier(Notifier *notify);
index 9fe474b63bd65208ed886e67619925a99c72ae63..ad29e534007759bb564547f5e6c8e43b81259607 100644 (file)
@@ -37,6 +37,7 @@
 #include "qom/cpu.h"
 #include "exec/memory.h"
 #include "exec/address-spaces.h"
+#include "exec/target_page.h"
 #include "io/channel-buffer.h"
 #include "io/channel-tls.h"
 #include "migration/colo.h"
index 0e2a996168413acbc44b9b7c19bc4a20794c2202..a37620dac6ed52ecc2c2ecebf476d66797bf75e3 100644 (file)
@@ -19,6 +19,7 @@
 #include "qemu/osdep.h"
 
 #include "qemu-common.h"
+#include "exec/target_page.h"
 #include "migration/migration.h"
 #include "migration/qemu-file.h"
 #include "postcopy-ram.h"
index 85651030b411ab18321f6d77caa022b8038e7438..8763700bd5194fb3541c07a577fdc4004967a168 100644 (file)
@@ -43,6 +43,7 @@
 #include "qemu/queue.h"
 #include "sysemu/cpus.h"
 #include "exec/memory.h"
+#include "exec/target_page.h"
 #include "qmp-commands.h"
 #include "trace.h"
 #include "qemu/bitops.h"