ram.c (b890902c9c025b87d02e718eec3090fd3525ab18) ram.c (51b07548f7c31793adc178c7460c5f4369733c61)
1/*
2 * QEMU System Emulator
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 * Copyright (c) 2011-2015 Red Hat Inc
6 *
7 * Authors:
8 * Juan Quintela <quintela@redhat.com>

--- 2348 unchanged lines hidden (view full) ---

2357 }
2358
2359 /*
2360 * Do not use multifd in postcopy as one whole host page should be
2361 * placed. Meanwhile postcopy requires atomic update of pages, so even
2362 * if host page size == guest page size the dest guest during run may
2363 * still see partially copied pages which is data corruption.
2364 */
1/*
2 * QEMU System Emulator
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 * Copyright (c) 2011-2015 Red Hat Inc
6 *
7 * Authors:
8 * Juan Quintela <quintela@redhat.com>

--- 2348 unchanged lines hidden (view full) ---

2357 }
2358
2359 /*
2360 * Do not use multifd in postcopy as one whole host page should be
2361 * placed. Meanwhile postcopy requires atomic update of pages, so even
2362 * if host page size == guest page size the dest guest during run may
2363 * still see partially copied pages which is data corruption.
2364 */
2365 if (migrate_use_multifd() && !migration_in_postcopy()) {
2365 if (migrate_multifd() && !migration_in_postcopy()) {
2366 return ram_save_multifd_page(pss->pss_channel, block, offset);
2367 }
2368
2369 return ram_save_page(rs, pss);
2370}
2371
2372/* Should be called before sending a host page */
2373static void pss_host_page_prepare(PageSearchStatus *pss)

--- 2355 unchanged lines hidden ---
2366 return ram_save_multifd_page(pss->pss_channel, block, offset);
2367 }
2368
2369 return ram_save_page(rs, pss);
2370}
2371
2372/* Should be called before sending a host page */
2373static void pss_host_page_prepare(PageSearchStatus *pss)

--- 2355 unchanged lines hidden ---