diff options
author | Anthony Liguori | 2012-07-09 18:57:34 +0200 |
---|---|---|
committer | Anthony Liguori | 2012-07-09 18:57:34 +0200 |
commit | 3f6e9a5fad982713440c636f5f7b786e1cc86ca2 (patch) | |
tree | ff7b9b9d8400e4fa6f708681d12991c40c8a7d40 /migration.h | |
parent | Merge remote-tracking branch 'kiszka/queues/slirp' into staging (diff) | |
parent | Maintain the number of dirty pages (diff) | |
download | qemu-3f6e9a5fad982713440c636f5f7b786e1cc86ca2.tar.gz qemu-3f6e9a5fad982713440c636f5f7b786e1cc86ca2.tar.xz qemu-3f6e9a5fad982713440c636f5f7b786e1cc86ca2.zip |
Merge remote-tracking branch 'quintela/migration-anthony-v2' into staging
* quintela/migration-anthony-v2:
Maintain the number of dirty pages
dirty bitmap: abstract its use
Exit loop if we have been there too long
Only calculate expected_time for stage 2
Only TCG needs TLB handling
No need to iterate if we already are over the limit
Add tracepoints for savevm section start/end
Add spent time for migration
Add migration_end function
Add debugging infrastructure
Add save_block_hdr function
Add MigrationParams structure
Add missing check for host_from_stream_offset return value for RAM_SAVE_FLAG_PAGE
Diffstat (limited to 'migration.h')
-rw-r--r-- | migration.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/migration.h b/migration.h index 2e9ca2edf2..de13004573 100644 --- a/migration.h +++ b/migration.h @@ -19,6 +19,11 @@ #include "notify.h" #include "error.h" +struct MigrationParams { + bool blk; + bool shared; +}; + typedef struct MigrationState MigrationState; struct MigrationState @@ -31,8 +36,8 @@ struct MigrationState int (*close)(MigrationState *s); int (*write)(MigrationState *s, const void *buff, size_t size); void *opaque; - int blk; - int shared; + MigrationParams params; + int64_t total_time; }; void process_incoming_migration(QEMUFile *f); |