Hi
This series make RAMState a dynamic variable. We create it at the
beggining of migration and remove it when migration ends.
- Move ZERO_TARGET_PAGE to XBZRLE
- print the number of remaining pages not only the number of bytes
this makes easier to use statistics.
- How to export statistics to use for "info migrate"? It is
complicated, right now we use accessor functions for RAMState. But we
already have a struct with the fields that we need. MigrationStats.
Use them instead of having to create a new accessor function for
each new field that we print. There is another reason for this: We
want to make RAMstate dynamic. And we access states after migration
has finished.
- We end making RAMState dynamic.
This series is on top of the "previous consistent ouput"
Please, review.
Thanks, Juan.
Juan Quintela (5):
ram: Call migration_page_queue_free() at ram_migration_cleanup()
ram: Move ZERO_TARGET_PAGE inside XBZRLE
migration: Print statistics about the number of remaining target pages
ram: Use MigrationStats for statistics
ram: Make RAMState dynamic
migration/migration.c | 35 ++++----
migration/ram.c | 243 ++++++++++++++++++--------------------------------
migration/ram.h | 16 +---
qapi-schema.json | 6 +-
4 files changed, 113 insertions(+), 187 deletions(-)
--
2.9.4