Currently creating a memory region automatically registers it for live migration. This differs from other state (which is enumerated in a VMStateDescription structure) and ties the live migration code into the memory core.
Decouple the two by introducing a separate API, vmstate_register_ram(), for registering a RAM block for migration. Currently the same implementation is reused, but later it can be moved into a separate list, and registrations can be moved to VMStateDescription blocks. Avi Kivity (2): memory: introduce memory_region_name() vmstate, memory: decouple vmstate from memory API Makefile.objs | 2 +- Makefile.target | 2 +- cpu-common.h | 1 + exec-obsolete.h | 6 ++---- exec.c | 31 ++++++++++++++++++++++--------- hw/alpha_typhoon.c | 3 ++- hw/an5206.c | 6 ++++-- hw/armv7m.c | 9 ++++++--- hw/axis_dev88.c | 6 ++++-- hw/dummy_m68k.c | 3 ++- hw/g364fb.c | 3 ++- hw/hw.h | 5 +++++ hw/integratorcp.c | 6 ++++-- hw/ivshmem.c | 7 +++++-- hw/leon3.c | 6 ++++-- hw/lm32_boards.c | 6 ++++-- hw/mainstone.c | 3 ++- hw/mcf5208.c | 6 ++++-- hw/milkymist-minimac2.c | 3 ++- hw/milkymist-softusb.c | 6 ++++-- hw/milkymist.c | 3 ++- hw/mips_fulong2e.c | 6 ++++-- hw/mips_jazz.c | 9 ++++++--- hw/mips_malta.c | 9 ++++++--- hw/mips_mipssim.c | 6 ++++-- hw/mips_r4k.c | 6 ++++-- hw/musicpal.c | 6 ++++-- hw/omap1.c | 6 ++++-- hw/omap2.c | 6 ++++-- hw/omap_sx1.c | 6 ++++-- hw/onenand.c | 3 ++- hw/palm.c | 3 ++- hw/pc.c | 9 ++++++--- hw/pci.c | 4 +++- hw/petalogix_ml605_mmu.c | 6 ++++-- hw/petalogix_s3adsp1800_mmu.c | 7 ++++--- hw/pflash_cfi01.c | 4 +++- hw/pflash_cfi02.c | 3 ++- hw/ppc405_boards.c | 18 ++++++++++++------ hw/ppc405_uc.c | 3 ++- hw/ppc4xx_devs.c | 3 ++- hw/ppc_newworld.c | 6 ++++-- hw/ppc_oldworld.c | 6 ++++-- hw/ppc_prep.c | 6 ++++-- hw/ppce500_mpc8544ds.c | 3 ++- hw/pxa2xx.c | 12 ++++++++---- hw/r2d.c | 3 ++- hw/realview.c | 9 ++++++--- hw/s390-virtio.c | 3 ++- hw/shix.c | 9 ++++++--- hw/sm501.c | 3 ++- hw/spitz.c | 3 ++- hw/strongarm.c | 3 ++- hw/sun4m.c | 12 ++++++++---- hw/sun4u.c | 6 ++++-- hw/tc6393xb.c | 3 ++- hw/tcx.c | 3 ++- hw/tosa.c | 3 ++- hw/versatilepb.c | 3 ++- hw/vexpress.c | 12 ++++++++---- hw/vga.c | 3 ++- hw/virtex_ml507.c | 3 ++- hw/vmware_vga.c | 3 ++- hw/xtensa_lx60.c | 9 ++++++--- hw/xtensa_sim.c | 6 ++++-- memory.c | 14 ++++++++------ memory.h | 27 ++++++++++++--------------- savevm.c | 17 +++++++++++++++++ xen-all.c | 3 ++- 69 files changed, 292 insertions(+), 147 deletions(-) -- 1.7.7.1