From: "Michael R. Hines" <mrhi...@us.ibm.com> This series allows us to send the contents of the entire MigrationInfo structure to the destination once the migration is over. This is very useful for analyzing the result of a migration, and particularly useful for management software and policy. Normally, the information ins MigrationInfo is completely lost when the source VM is destroyed, but with this series, we can preserve the statistics for retrieval.
The QMP architecture has sufficient functionality to serialize and deserialize arbitrary objects into JSON and back again (very nice). We only store the stats from the *last* migration, but not all previous migrations, as that could potentially get unwieldy. Thus, it's the management software's (or user's) responsibility to retrieve the statistics before another migration occurs. Michael R. Hines (3): provenance: QMP command to store MigrationInfo from JSON provenance: serialize MigrationInfo across the wire provenance: expose the serialization save/load functions for migration include/migration/migration.h | 8 +++ migration.c | 126 ++++++++++++++++++++++++++++++++++++++++-- qapi-schema.json | 14 +++++ qmp-commands.hx | 33 +++++++++++ vl.c | 2 + 5 files changed, 178 insertions(+), 5 deletions(-) -- 1.8.1.2