Skip to content

RFC migration: vmstate_save|load changes for peterx

Fabiano Rosas qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest17 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17vmstate: fixup the use of AUTO_ALLOC flagmigration/savevm.c+1 -11 reply
2/17vmstate: Remove vmstate_use_marker_fieldmigration/vmstate.c+10 -262 replies
3/17vmstate: Stop checking size for nullptr compressionmigration/vmstate.c+3 -30 replies
4/17vmstate: Set error inside of vmstate_save_field_with_vmdescmigration/vmstate.c+5 -50 replies
5/17vmstate: Remove vmdesc_loopmigration/vmstate.c+14 -113 replies
6/17vmstate: Put array of pointers code togethermigration/vmstate.c+92 -1010 replies
7/17vmstate: Create and save ptr marker in same functionmigration/vmstate.c+39 -390 replies
8/17vmstate: Don't recompute size and n_elems in vmstate_sizemigration/vmstate.c+3 -40 replies
9/17vmstate: Increase scope of vmstate_handle_allocmigration/vmstate.c+14 -100 replies
10/17vmstate: Remove curr_elem_pmigration/vmstate.c+6 -50 replies
11/17vmstate: Introduce vmstate_firstmigration/vmstate.c+38 -290 replies
12/17vmstate: Introduce vmstate_nextmigration/vmstate.c+39 -452 replies
13/17vmstate: Drop VMS_ARRAY_OF_POINTER_AUTO_ALLOCinclude/migration/vmstate.h migration/savevm.c migration/vmstate.c+24 -373 replies
14/17vmstate: Move VMS_MUST_EXIST checkmigration/vmstate.c+30 -181 reply
15/17vmstate: Invert exists checkmigration/vmstate.c+9 -20 replies
16/17vmstate: Declare variables at the topmigration/vmstate.c+9 -90 replies
17/17vmstate: Reduce indentation levelsmigration/vmstate.c+96 -970 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH v1 00/17] migration: vmstate_save|load changes for peterx

Too much stuff to mention inline on the series, here's some patches on top. Let me know what you think! Feel free to drop it all or incorporate or whatever.

Based-on: [PATCH RFC 00/10] vmstate: Implement VMS_ARRAY_OF_POINTER_AUTO_ALLOC [email protected]
https://lore.kernel.org/r/[email protected]

which is in turn based on https://gitlab.com/farosas/qemu/-/commits/migration-staging

I pushed it all to https://gitlab.com/farosas/qemu/-/commits/migration-rfc-auto-alloc

CI run: https://gitlab.com/farosas/qemu/-/pipelines/2406278684

Fabiano Rosas (17):
vmstate: fixup the use of AUTO_ALLOC flag
vmstate: Remove vmstate_use_marker_field
vmstate: Stop checking size for nullptr compression
vmstate: Set error inside of vmstate_save_field_with_vmdesc
vmstate: Remove vmdesc_loop
vmstate: Put array of pointers code together
vmstate: Create and save ptr marker in same function
vmstate: Don't recompute size and n_elems in vmstate_size
vmstate: Increase scope of vmstate_handle_alloc
vmstate: Remove curr_elem_p
vmstate: Introduce vmstate_first
vmstate: Introduce vmstate_next
vmstate: Drop VMS_ARRAY_OF_POINTER_AUTO_ALLOC
vmstate: Move VMS_MUST_EXIST check
vmstate: Invert exists check
vmstate: Declare variables at the top
vmstate: Reduce indentation levels

 include/migration/vmstate.h |  21 +-
 migration/savevm.c          |  28 +--
 migration/vmstate.c         | 451 ++++++++++++++++++------------------
 3 files changed, 245 insertions(+), 255 deletions(-)
Signature · 1 line
2.51.0