diff options
author | Juan Quintela <quintela@redhat.com> | 2012-06-26 19:26:41 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2012-07-20 08:19:27 +0200 |
commit | 9b5bfab05f7c2a56d5908117e8cc62015e6b2c63 (patch) | |
tree | 352b26118880668cb949c218a79e7a45a2078521 /savevm.c | |
parent | 226aa6a9b19e5465418fa62c5188acac280f1c13 (diff) | |
download | qemu-9b5bfab05f7c2a56d5908117e8cc62015e6b2c63.tar.gz qemu-9b5bfab05f7c2a56d5908117e8cc62015e6b2c63.tar.bz2 qemu-9b5bfab05f7c2a56d5908117e8cc62015e6b2c63.zip |
savevm: Refactor cancel operation in its own operation
Intead of abusing stage with value -1.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'savevm.c')
-rw-r--r-- | savevm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1703,8 +1703,8 @@ void qemu_savevm_state_cancel(QEMUFile *f) SaveStateEntry *se; QTAILQ_FOREACH(se, &savevm_handlers, entry) { - if (se->ops && se->ops->save_live_state) { - se->ops->save_live_state(f, -1, se->opaque); + if (se->ops && se->ops->cancel) { + se->ops->cancel(se->opaque); } } } |