On 01/16/2017 06:51 PM, Pavel Butsykin wrote: > 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. > > Pavel Butsykin (2): > add 'discard-ram' migrate capability > migration: discard non-dirty ram pages after the start of postcopy > > include/migration/migration.h | 2 ++ > include/migration/qemu-file.h | 3 ++- > migration/migration.c | 11 ++++++++ > migration/qemu-file.c | 59 > ++++++++++++++++++++++++++++++++++++++----- > migration/ram.c | 49 ++++++++++++++++++++++++++++++++++- > qapi-schema.json | 5 +++- > 6 files changed, 119 insertions(+), 10 deletions(-) > ping