Skip to content

RFC provenance: save migration stats after completion to destination

[email protected] qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3provenance: QMP command to store MigrationInfo from JSONqapi-schema.json qmp-commands.hx+47 -00 replies
2/3provenance: serialize MigrationInfo across the wiremigration.c+121 -50 replies
3/3provenance: expose the serialization save/load functions for migrationinclude/migration/migration.h vl.c+10 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RFC PATCH v1 0/3] provenance: save migration stats after completion to destination

From: "Michael R. Hines" <[email protected]>

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(-)
Signature · 1 line
1.8.1.2