Skip to content

vmstate: Drop post_save / allow instance ID aliases

Jan Kiszka qemu-devel 2 versions – Applied

Status from this message: Thanks, applied all.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 3 repliesApplied
  2. v16 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- incorporated Blue Swirl's suggestion to request and check the highest vmstate version that requires the alias (updated patches 3..6)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6tmp105: Drop unused faults fieldhw/tmp105.c+0 -102 replies
2/6vmstate: Drop unused post_save handlerhw/hw.h savevm.c+0 -40 replies
3/6vmstate: Add support for alias IDhw/hw.h hw/qdev.c hw/qdev.h +1 more+39 -50 replies
4/6serial: Register vmstate via qdevhw/serial.c+12 -10 replies
5/6fdc: Register vmstate via qdevhw/fdc.c+30 -50 replies
6/6mc146818rtc: Register vmstate via qdevhw/mc146818rtc.c+2 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/6] vmstate: Drop post_save / allow instance ID aliases

This series comes with two major contributions:
- after moving away the last user of post_save (tmp105), this vmstate callback is dropped
- introduction of an instance ID alias to vmstate, allowing to drop a few more explicit vmstate_register calls

Changes in v2:
- incorporated Blue Swirl's suggestion to request and check the highest vmstate version that requires the alias (updated patches 3..6)

Jan Kiszka (6):
tmp105: Drop unused faults field
vmstate: Drop unused post_save handler
vmstate: Add support for alias ID
serial: Register vmstate via qdev
fdc: Register vmstate via qdev
mc146818rtc: Register vmstate via qdev

 hw/fdc.c         |   35 ++++++++++++++++++++++++++++++-----
 hw/hw.h          |    5 ++++-
 hw/mc146818rtc.c |    3 ++-
 hw/qdev.c        |   16 ++++++++++++++--
 hw/qdev.h        |    4 ++++
 hw/serial.c      |   13 ++++++++++++-
 hw/tmp105.c      |   10 ----------
 savevm.c         |   23 +++++++++++++++++------
 8 files changed, 83 insertions(+), 26 deletions(-)