]> git.proxmox.com Git - qemu.git/commit - exec.c
vmstate, memory: decouple vmstate from memory API
authorAvi Kivity <avi@redhat.com>
Tue, 20 Dec 2011 13:59:12 +0000 (15:59 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 4 Jan 2012 11:34:48 +0000 (13:34 +0200)
commitc5705a7728b4a6bc9e4f2d35911adbaf28042b25
treee96a1e0c9fbd0fa3624b5454038659775c81fba2
parent8991c79b57b75fcdeb290df89b9b0adaccb0303c
vmstate, memory: decouple vmstate from memory API

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.

Signed-off-by: Avi Kivity <avi@redhat.com>
71 files changed:
Makefile.objs
Makefile.target
cpu-common.h
exec-obsolete.h
exec.c
hw/alpha_typhoon.c
hw/an5206.c
hw/armv7m.c
hw/axis_dev88.c
hw/dummy_m68k.c
hw/g364fb.c
hw/hw.h
hw/integratorcp.c
hw/ivshmem.c
hw/leon3.c
hw/lm32_boards.c
hw/mainstone.c
hw/mcf5208.c
hw/milkymist-minimac2.c
hw/milkymist-softusb.c
hw/milkymist.c
hw/mips_fulong2e.c
hw/mips_jazz.c
hw/mips_malta.c
hw/mips_mipssim.c
hw/mips_r4k.c
hw/musicpal.c
hw/omap1.c
hw/omap2.c
hw/omap_sx1.c
hw/onenand.c
hw/palm.c
hw/pc.c
hw/pci.c
hw/petalogix_ml605_mmu.c
hw/petalogix_s3adsp1800_mmu.c
hw/pflash_cfi01.c
hw/pflash_cfi02.c
hw/ppc405_boards.c
hw/ppc405_uc.c
hw/ppc4xx_devs.c
hw/ppc_newworld.c
hw/ppc_oldworld.c
hw/ppc_prep.c
hw/ppce500_mpc8544ds.c
hw/pxa2xx.c
hw/qxl.c
hw/r2d.c
hw/realview.c
hw/s390-virtio.c
hw/shix.c
hw/sm501.c
hw/spapr.c
hw/spitz.c
hw/strongarm.c
hw/sun4m.c
hw/sun4u.c
hw/tc6393xb.c
hw/tcx.c
hw/tosa.c
hw/versatilepb.c
hw/vexpress.c
hw/vga.c
hw/virtex_ml507.c
hw/vmware_vga.c
hw/xtensa_lx60.c
hw/xtensa_sim.c
memory.c
memory.h
savevm.c
xen-all.c