]> git.proxmox.com Git - qemu.git/commit - arch_init.c
Separate migration bitmap
authorJuan Quintela <quintela@redhat.com>
Fri, 20 Jul 2012 10:33:00 +0000 (12:33 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 17 Oct 2012 16:34:58 +0000 (18:34 +0200)
commitc6bf8e0e0cf04b40a8a22426e00ebbd727331d8b
treed87faa8ac75a2aabd59fb2e685a90bf1d46b8a07
parent3c12193d998249bcbe5099edf85039bcd25c3a80
Separate migration bitmap

This patch creates a migration bitmap, which is periodically kept in
sync with the qemu bitmap. A separate copy of the dirty bitmap for the
migration limits the amount of concurrent access to the qemu bitmap
from iothread and migration thread (which requires taking the big
lock).

We use the qemu bitmap type.  We have to "undo" the dirty_pages
counting optimization on the general dirty bitmap and do the counting
optimization with the migration local bitmap.

Signed-off-by: Umesh Deshpande <udeshpan@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
arch_init.c
cpu-all.h
exec-obsolete.h