All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/5] vmstate: Add max_version_id field
@ 2013-10-14 16:45 Eduardo Habkost
  2013-10-14 16:45 ` [Qemu-devel] [PATCH 1/5] savevm: Coding style line length fix Eduardo Habkost
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Eduardo Habkost @ 2013-10-14 16:45 UTC (permalink / raw)
  To: qemu-devel, Juan Quintela; +Cc: Paolo Bonzini, Markus Armbruster

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(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-10-15 12:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-14 16:45 [Qemu-devel] [PATCH 0/5] vmstate: Add max_version_id field Eduardo Habkost
2013-10-14 16:45 ` [Qemu-devel] [PATCH 1/5] savevm: Coding style line length fix Eduardo Habkost
2013-10-14 16:45 ` [Qemu-devel] [PATCH 2/5] vmstate: Replace while (...) with for (...) Eduardo Habkost
2013-10-14 16:45 ` [Qemu-devel] [PATCH 3/5] vmstate: Simplify field-skipping load/save logic Eduardo Habkost
2013-10-15  8:01   ` Markus Armbruster
2013-10-15 12:12     ` Eduardo Habkost
2013-10-15 11:32   ` Paolo Bonzini
2013-10-14 16:45 ` [Qemu-devel] [PATCH 4/5] vmstate: Use version_id when saving Eduardo Habkost
2013-10-14 16:45 ` [Qemu-devel] [PATCH 5/5] vmstate: Add max_version_id field to VMStateDescription Eduardo Habkost

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.