This is a separate patch set, it derived from https://www.mail-archive.com/qemu-devel@nongnu.org/msg456004.html
There are several possible use cases: 1. solve issue with postcopy live migration and shared memory. OVS-VSWITCH requires information about copied pages, to fallocate newly allocated pages. 2. calculation vCPU blocktime for more details see https://www.mail-archive.com/qemu-devel@nongnu.org/msg456004.html 3. Recovery after fail in the middle of postcopy migration Declaration is placed in two places include/migration/migration.h and into migration/postcopy-ram.h, because some functions are required in virtio. Alexey Perevalov (2): migration: postcopy_place_page factoring out migration: add bitmap for copied page include/exec/ram_addr.h | 3 +++ include/migration/migration.h | 3 +++ migration/postcopy-ram.c | 20 +++++++++++---- migration/postcopy-ram.h | 4 +-- migration/ram.c | 58 ++++++++++++++++++++++++++++++++++++++++--- migration/ram.h | 5 ++++ migration/savevm.c | 1 + 7 files changed, 84 insertions(+), 10 deletions(-) -- 1.9.1