diff options
author | Juan Quintela <quintela@redhat.com> | 2017-06-28 11:52:26 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2017-07-10 17:52:21 +0100 |
commit | acb5ea86971a7f3d0eac30996c4d0eab7b873879 (patch) | |
tree | 34a5d6dc816da696f607201a907fd3fbbc4d8dcf /include | |
parent | 70f794fcfa7c1b9d7af465d124a0e6175da30e39 (diff) |
migration: Create load_setup()/cleanup() methods
We need to do things at load time and at cleanup time.
Signed-off-by: Juan Quintela <quintela@redhat.com>
--
Move the printing of the error message so we can print the device
giving the error.
Add call to postcopy stuff
Message-Id: <20170628095228.4661-4-quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/migration/register.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/migration/register.h b/include/migration/register.h index 938ea2bc3d..a0f1edd8c7 100644 --- a/include/migration/register.h +++ b/include/migration/register.h @@ -39,6 +39,8 @@ typedef struct SaveVMHandlers { uint64_t *non_postcopiable_pending, uint64_t *postcopiable_pending); LoadStateHandler *load_state; + int (*load_setup)(QEMUFile *f, void *opaque); + int (*load_cleanup)(void *opaque); } SaveVMHandlers; int register_savevm_live(DeviceState *dev, |