mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
e0b266f01d
commit
1caddf8a81
6 changed files with 138 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue