diff options
Diffstat (limited to 'include/migration/postcopy-ram.h')
-rw-r--r-- | include/migration/postcopy-ram.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/migration/postcopy-ram.h b/include/migration/postcopy-ram.h index de79fa778f..f87020c582 100644 --- a/include/migration/postcopy-ram.h +++ b/include/migration/postcopy-ram.h @@ -17,6 +17,18 @@ bool postcopy_ram_supported_by_host(void); /* + * Initialise postcopy-ram, setting the RAM to a state where we can go into + * postcopy later; must be called prior to any precopy. + * called from ram.c's similarly named ram_postcopy_incoming_init + */ +int postcopy_ram_incoming_init(MigrationIncomingState *mis, size_t ram_pages); + +/* + * At the end of a migration where postcopy_ram_incoming_init was called. + */ +int postcopy_ram_incoming_cleanup(MigrationIncomingState *mis); + +/* * Discard the contents of 'length' bytes from 'start' * We can assume that if we've been called postcopy_ram_hosttest returned true */ |