Skip to content

virtio-net VMState conversion and new VMSTATE macros

Dr. David Alan Gilbert (git) qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4migration: Add VMSTATE_UNUSED_VARRAY_UINT32include/migration/vmstate.h+11 -01 reply
2/4migration: Add VMSTATE_WITH_TMPinclude/migration/vmstate.h migration/vmstate.c+59 -01 reply
3/4tests/migration: Add test for VMSTATE_WITH_TMPtests/test-vmstate.c+92 -61 reply
4/4virtio/migration: Migrate virtio-net to VMStatehw/net/virtio-net.c include/hw/virtio/virtio-net.h+213 -1070 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid GibsonMichael S. TsirkinJuan QuintelaAlex Bennée
SeriesR-b
1/4R-b
2/4R-b R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] virtio-net VMState conversion and new VMSTATE macros

From: "Dr. David Alan Gilbert" <[email protected]>

Hi,
This set converts the virtio-net device to VMState;
it uses a couple of new VMSTATE macros I've added, of which the VMSTATE_WITH_TMP is a bit unusual, but is intended for dealing with migration data that doesn't quite look like the data structure we have in memory.

Dave

Dr. David Alan Gilbert (4):
migration: Add VMSTATE_UNUSED_VARRAY_UINT32
migration: Add VMSTATE_WITH_TMP
tests/migration: Add test for VMSTATE_WITH_TMP
virtio/migration: Migrate virtio-net to VMState

 hw/net/virtio-net.c            | 316 +++++++++++++++++++++++++++--------------
 include/hw/virtio/virtio-net.h |   4 +-
 include/migration/vmstate.h    |  30 ++++
 migration/vmstate.c            |  40 ++++++
 tests/test-vmstate.c           |  98 ++++++++++++-
 5 files changed, 375 insertions(+), 113 deletions(-)
Signature · 1 line
2.9.3