Skip to content

vmstate: Add max_version_id field

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5savevm: Coding style line length fixsavevm.c+2 -10 replies
2/5vmstate: Replace while (...) with for (...)savevm.c+4 -60 replies
3/5vmstate: Simplify field-skipping load/save logicsavevm.c+80 -763 replies
4/5vmstate: Use version_id when savingsavevm.c+3 -00 replies
5/5vmstate: Add max_version_id field to VMStateDescriptioninclude/migration/vmstate.h savevm.c+2 -10 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] [PATCH 0/5] vmstate: Add max_version_id field

This series cleans up the vmstate save/load code a little, and adds a max_version_id field to VMStateDescription.

This will be useful in case we need to revert vmstate changes but keep compatibility with QEMU versions that had a higher version_id. No existing behavior will be changed by code that doesn't have max_version_id set.

One possible use case for this is the the "cpu" section, where the xsave CPU state could be made optional by moving it to a "xsave" section, and then revert version_id back to 11 while still accepting version_id==12 migration data.

Eduardo Habkost (5):
savevm: Coding style line length fix
vmstate: Replace while (...) with for (...)
vmstate: Simplify field-skipping load/save logic
vmstate: Use version_id when saving
vmstate: Add max_version_id field to VMStateDescription

 include/migration/vmstate.h |   1 +
 savevm.c                    | 170 +++++++++++++++++++++++---------------------
 2 files changed, 89 insertions(+), 82 deletions(-)
Signature · 1 line
1.8.3.1