]> git.proxmox.com Git - mirror_qemu.git/commit
migration: calculate vCPU blocktime on dst side
authorAlexey Perevalov <a.perevalov@samsung.com>
Mon, 30 Oct 2017 13:16:27 +0000 (16:16 +0300)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 Jan 2018 11:48:01 +0000 (12:48 +0100)
commit3be98be4e9f59055afb5f2b27f9296c7093b4e75
tree9b5f34c90d7ebbd29b6c99a823034befaeb708e8
parent01a87f0bd38b06ff92e0fc08ecf54eefab6d9ca8
migration: calculate vCPU blocktime on dst side

This patch provides blocktime calculation per vCPU,
as a summary and as a overlapped value for all vCPUs.

This approach was suggested by Peter Xu, as an improvements of
previous approch where QEMU kept tree with faulted page address and cpus bitmask
in it. Now QEMU is keeping array with faulted page address as value and vCPU
as index. It helps to find proper vCPU at UFFD_COPY time. Also it keeps
list for blocktime per vCPU (could be traced with page_fault_addr)

Blocktime will not calculated if postcopy_blocktime field of
MigrationIncomingState wasn't initialized.

Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/postcopy-ram.c
migration/trace-events