aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2024-10-24 17:30:51 -0400
committerPeter Xu <peterx@redhat.com>2024-10-31 15:48:18 -0400
commit64dcd2c9c627b88ec7d071e1b49f0180b467fc71 (patch)
tree68700133c3dfc3dd7dae1a9def448aee4fbd7eda
parenta4ddab35819556aeb88b8c2f3e6f7823175481eb (diff)
downloadqemu-64dcd2c9c627b88ec7d071e1b49f0180b467fc71.zip
qemu-64dcd2c9c627b88ec7d071e1b49f0180b467fc71.tar.gz
qemu-64dcd2c9c627b88ec7d071e1b49f0180b467fc71.tar.bz2
migration: Unexport ram_mig_init()
It's only used within migration/. Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/20241024213056.1395400-4-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com>
-rw-r--r--include/migration/misc.h1
-rw-r--r--migration/ram.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/migration/misc.h b/include/migration/misc.h
index df57be6..e8490e3 100644
--- a/include/migration/misc.h
+++ b/include/migration/misc.h
@@ -39,7 +39,6 @@ void precopy_add_notifier(NotifierWithReturn *n);
void precopy_remove_notifier(NotifierWithReturn *n);
int precopy_notify(PrecopyNotifyReason reason, Error **errp);
-void ram_mig_init(void);
void qemu_guest_free_page_hint(void *addr, size_t len);
bool migrate_ram_is_ignored(RAMBlock *block);
diff --git a/migration/ram.h b/migration/ram.h
index bc0318b..0d1981f 100644
--- a/migration/ram.h
+++ b/migration/ram.h
@@ -44,6 +44,7 @@ extern XBZRLECacheStats xbzrle_counters;
INTERNAL_RAMBLOCK_FOREACH(block) \
if (!qemu_ram_is_migratable(block)) {} else
+void ram_mig_init(void);
int xbzrle_cache_resize(uint64_t new_size, Error **errp);
uint64_t ram_bytes_remaining(void);
uint64_t ram_bytes_total(void);