diff options
author | Juan Quintela <quintela@redhat.com> | 2012-06-27 10:59:15 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2012-07-20 08:19:27 +0200 |
commit | 6bd68781331590c4f2fbd1fdf98e80d7f6588b31 (patch) | |
tree | ae53eee26d30deae6d3ed0ca84b559d0b2819265 /vmstate.h | |
parent | 9b5bfab05f7c2a56d5908117e8cc62015e6b2c63 (diff) | |
download | qemu-6bd68781331590c4f2fbd1fdf98e80d7f6588b31.zip qemu-6bd68781331590c4f2fbd1fdf98e80d7f6588b31.tar.gz qemu-6bd68781331590c4f2fbd1fdf98e80d7f6588b31.tar.bz2 |
savevm: introduce is_active method
Enable the creation of a method to tell migration if that section is
active and should be migrate. We use it for blk-migration, that is
normally not active. We don't create the method for RAM, as setups
without RAM are very strange O:-)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'vmstate.h')
-rw-r--r-- | vmstate.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -35,6 +35,7 @@ typedef struct SaveVMHandlers { int (*save_live_state)(QEMUFile *f, int stage, void *opaque); void (*cancel)(void *opaque); LoadStateHandler *load_state; + bool (*is_active)(void *opaque); } SaveVMHandlers; int register_savevm(DeviceState *dev, |