diff options
author | Pavel Butsykin <pbutsykin@virtuozzo.com> | 2017-02-03 18:23:20 +0300 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2017-02-13 17:27:13 +0000 |
commit | 53f09a1076f5efbba7d751a8005e2fcf008606db (patch) | |
tree | 1f4f0cd62537a1f1b50ca73fcba8fb3ee7a272d0 /include/migration/migration.h | |
parent | 9eb14766102b7af5c3ab3d64cc85985bdaa544e2 (diff) | |
download | qemu-53f09a1076f5efbba7d751a8005e2fcf008606db.zip |
add 'release-ram' migrate capability
This feature frees the migrated memory on the source during postcopy-ram
migration. In the second step of postcopy-ram migration when the source vm
is put on pause we can free unnecessary memory. It will allow, in particular,
to start relaxing the memory stress on the source host in a load-balancing
scenario.
Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
Message-Id: <20170203152321.19739-3-pbutsykin@virtuozzo.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Manually merged in Pavel's 'migration: madvise error_report fixup!'
Diffstat (limited to 'include/migration/migration.h')
-rw-r--r-- | include/migration/migration.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h index 7528cc2fbc..b9b706a7e3 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -304,6 +304,7 @@ int migrate_add_blocker(Error *reason, Error **errp); */ void migrate_del_blocker(Error *reason); +bool migrate_release_ram(void); bool migrate_postcopy_ram(void); bool migrate_zero_blocks(void); |