summaryrefslogtreecommitdiff
path: root/kvm.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-05-01 20:52:47 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-22 10:50:33 -0500
commit2884a792ecc9a9c0b7ac1dac2554a20f84f928da (patch)
tree2ccfe9051ffcf589965e7af7c9ad7a5e8f30f0f3 /kvm.h
parentf350944f27d56630b3349822cb3d9c27818abbec (diff)
downloadqemu-2884a792ecc9a9c0b7ac1dac2554a20f84f928da.tar.gz
qemu-2884a792ecc9a9c0b7ac1dac2554a20f84f928da.tar.bz2
qemu-2884a792ecc9a9c0b7ac1dac2554a20f84f928da.zip
kvm: Rework dirty bitmap synchronization
Extend kvm_physical_sync_dirty_bitmap() so that is can sync across multiple slots. Useful for updating the whole dirty log during migration. Moreover, properly pass down errors the whole call chain. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'kvm.h')
-rw-r--r--kvm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvm.h b/kvm.h
index 1d247e093e..d0738f5fa0 100644
--- a/kvm.h
+++ b/kvm.h
@@ -40,8 +40,8 @@ void kvm_set_phys_mem(target_phys_addr_t start_addr,
ram_addr_t size,
ram_addr_t phys_offset);
-void kvm_physical_sync_dirty_bitmap(target_phys_addr_t start_addr,
- target_phys_addr_t end_addr);
+int kvm_physical_sync_dirty_bitmap(target_phys_addr_t start_addr,
+ target_phys_addr_t end_addr);
int kvm_log_start(target_phys_addr_t phys_addr, ram_addr_t size);
int kvm_log_stop(target_phys_addr_t phys_addr, ram_addr_t size);