diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2015-11-05 18:11:03 +0000 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2015-11-10 15:00:27 +0100 |
commit | 1caddf8a819d83027d897997c0af10c426f88633 (patch) | |
tree | 13be324239b68e666dbf7b8630ef7b8bdcb1ce6b /migration/ram.c | |
parent | e0b266f01dd21748c12f35e18e6f300035f2f336 (diff) | |
download | qemu-1caddf8a819d83027d897997c0af10c426f88633.tar.gz qemu-1caddf8a819d83027d897997c0af10c426f88633.tar.bz2 qemu-1caddf8a819d83027d897997c0af10c426f88633.zip |
postcopy: Incoming initialisation
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r-- | migration/ram.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/migration/ram.c b/migration/ram.c index b481d555e9..2e27b26d4c 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1794,6 +1794,17 @@ static void decompress_data_with_multi_threads(uint8_t *compbuf, } } +/* + * Allocate data structures etc needed by incoming migration with postcopy-ram + * postcopy-ram's similarly names postcopy_ram_incoming_init does the work + */ +int ram_postcopy_incoming_init(MigrationIncomingState *mis) +{ + size_t ram_pages = last_ram_offset() >> TARGET_PAGE_BITS; + + return postcopy_ram_incoming_init(mis, ram_pages); +} + static int ram_load(QEMUFile *f, void *opaque, int version_id) { int flags = 0, ret = 0; |