diff options
Diffstat (limited to 'include/migration')
-rw-r--r-- | include/migration/postcopy-ram.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/migration/postcopy-ram.h b/include/migration/postcopy-ram.h index d7c292f..b6a7491f 100644 --- a/include/migration/postcopy-ram.h +++ b/include/migration/postcopy-ram.h @@ -41,6 +41,12 @@ int postcopy_ram_incoming_cleanup(MigrationIncomingState *mis); int postcopy_ram_discard_range(MigrationIncomingState *mis, uint8_t *start, size_t length); +/* + * Userfault requires us to mark RAM as NOHUGEPAGE prior to discard + * however leaving it until after precopy means that most of the precopy + * data is still THPd + */ +int postcopy_ram_prepare_discard(MigrationIncomingState *mis); /* * Called at the start of each RAMBlock by the bitmap code. |