Skip to content

arm_gic: convert to vmstate

Peter Maydell qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesIn review
  2. v22 patches 7 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

* implement 2D array support in vmstate.h so we don't need to abuse VMSTATE_BUFFER_UNSAFE in a way that probably won't work for 16 bit values when source and destination have different endianness

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vmstate: Add support for two dimensional arraysinclude/migration/vmstate.h+27 -01 reply
2/3arm_gic: Fix sizes of state fields in preparation for vmstate supporthw/arm_gic_common.c hw/arm_gic_internal.h hw/armv7m_nvic.c+25 -250 replies
3/3hw/arm_gic_common: Use vmstate struct rather than save/load functionshw/arm_gic_common.c+41 -671 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchIgor MitsyankoAndreas Färber
1/3R-b
2/3R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/3] arm_gic: convert to vmstate

Convert the arm_gic save/load support from hand-coded save/load functions to use VMState. This seems like a good thing to do before we get to the point with KVM/ARM that we need to start supporting between-version migration...

Changes v2->v3:
* implement 2D array support in vmstate.h so we don't need to abuse VMSTATE_BUFFER_UNSAFE in a way that probably won't work for 16 bit values when source and destination have different endianness

Changes v1->v2:
* fix true/false mixup that stopped armv7m from booting

Peter Maydell (3):
vmstate: Add support for two dimensional arrays
arm_gic: Fix sizes of state fields in preparation for vmstate support hw/arm_gic_common: Use vmstate struct rather than save/load functions

 hw/arm_gic_common.c         |  112 +++++++++++++++++--------------------------
 hw/arm_gic_internal.h       |   42 ++++++++--------
 hw/armv7m_nvic.c            |    4 +-
 include/migration/vmstate.h |   27 +++++++++++
 4 files changed, 93 insertions(+), 92 deletions(-)
Signature · 1 line
1.7.9.5