From 5832d1f2f51e1a1991c53ea98c535a619cf03001 Mon Sep 17 00:00:00 2001 From: aliguori Date: Mon, 24 Nov 2008 19:36:26 +0000 Subject: kvm: Introduce kvm logging interface (Glauber Costa) Introduce functions to control logging of memory regions. We select regions based on its start address, a guest_physical_addr (target_phys_addr_t, in qemu nomenclature). The main user of this interface right now is VGA optimization (a way of reducing the number of mmio exits). Signed-off-by: Glauber Costa Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5792 c046a42c-6fe2-441c-8c8c-71466251a162 --- kvm.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kvm.h') diff --git a/kvm.h b/kvm.h index 304de272a7..fb952a3fb1 100644 --- a/kvm.h +++ b/kvm.h @@ -38,6 +38,10 @@ 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_log_start(target_phys_addr_t phys_addr, target_phys_addr_t len); +int kvm_log_stop(target_phys_addr_t phys_addr, target_phys_addr_t len); /* internal API */ struct KVMState; -- cgit v1.2.3