aboutsummaryrefslogtreecommitdiff
path: root/migration/ram.h
diff options
context:
space:
mode:
authorLukas Straub <lukasstraub2@web.de>2023-05-08 21:10:52 +0200
committerJuan Quintela <quintela@redhat.com>2023-05-10 18:48:11 +0200
commit871cfc540014bb2292d79ce4348484a3dbb33034 (patch)
treeaa057cba92e6fbcb40b2f026a48ec375154a09fa /migration/ram.h
parentcaa9cbd566877b34e9abcc04d936116fc5e0ab28 (diff)
ram: Add public helper to set colo bitmap
The overhead of the mutex in non-multifd mode is negligible, because in that case its just the single thread taking the mutex. This will be used in the next commits to add colo support to multifd. Signed-off-by: Lukas Straub <lukasstraub2@web.de> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <22d83cb428f37929563155531bfb69fd8953cc61.1683572883.git.lukasstraub2@web.de> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/ram.h')
-rw-r--r--migration/ram.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/ram.h b/migration/ram.h
index 6fffbeb5f1..ea1f3c25b5 100644
--- a/migration/ram.h
+++ b/migration/ram.h
@@ -82,6 +82,7 @@ int colo_init_ram_cache(void);
void colo_flush_ram_cache(void);
void colo_release_ram_cache(void);
void colo_incoming_start_dirty_log(void);
+void colo_record_bitmap(RAMBlock *block, ram_addr_t *normal, uint32_t pages);
/* Background snapshot */
bool ram_write_tracking_available(void);