• Avi Kivity's avatar
    vmstate, memory: decouple vmstate from memory API · c5705a77
    Avi Kivity authored
    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: default avatarAvi Kivity <avi@redhat.com>
savevm.c 57.1 KB