migration: add bitmap for received page
commitf9494614898f46e59bc2243de6fb11ebbfc9cda6
authorAlexey Perevalov <a.perevalov@samsung.com>
Thu, 5 Oct 2017 11:13:20 +0000 (5 14:13 +0300)
committerJuan Quintela <quintela@redhat.com>
Mon, 23 Oct 2017 16:03:41 +0000 (23 18:03 +0200)
tree4bca843ea17e88237db53722a1f7792bd527257d
parent727b9d7e4926755e14d9ac2b09777c51cccb9b80
migration: add bitmap for received page

This patch adds ability to track down already received
pages, it's necessary for calculation vCPU block time in
postcopy migration feature, and for recovery after
postcopy migration failure.

Also it's necessary to solve shared memory issue in
postcopy livemigration. Information about received pages
will be transferred to the software virtual bridge
(e.g. OVS-VSWITCHD), to avoid fallocate (unmap) for
already received pages. fallocate syscall is required for
remmaped shared memory, due to remmaping itself blocks
ioctl(UFFDIO_COPY, ioctl in this case will end with EEXIT
error (struct page is exists after remmap).

Bitmap is placed into RAMBlock as another postcopy/precopy
related bitmaps.

Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/exec/ram_addr.h
migration/postcopy-ram.c
migration/ram.c
migration/ram.h