===================================================================
@@ -639,8 +639,8 @@ void kvm_destroy_phys_mem(kvm_context_t
free_slot(memory.slot);
}
-void kvm_unregister_memory_area(kvm_context_t kvm, uint64_t phys_addr,
- unsigned long size)
+static void kvm_unregister_memory_area(kvm_context_t kvm, uint64_t phys_addr,
+ unsigned long size)
{
int slot = get_container_slot(phys_addr, size);
@@ -667,14 +667,6 @@ static int kvm_get_map(kvm_context_t kvm
return 0;
}
-int kvm_get_dirty_pages(kvm_context_t kvm, unsigned long phys_addr, void *buf)
-{
- int slot;
-
- slot = get_slot(phys_addr);
- return kvm_get_map(kvm, KVM_GET_DIRTY_LOG, slot, buf);
-}
-
int kvm_get_dirty_pages_range(kvm_context_t kvm, unsigned long phys_addr,
unsigned long len, void *opaque,
int (*cb)(unsigned long start,
===================================================================
@@ -381,14 +381,11 @@ void *kvm_create_phys_mem(kvm_context_t,
unsigned long len, int log, int writable);
void kvm_destroy_phys_mem(kvm_context_t, unsigned long phys_start,
unsigned long len);
-void kvm_unregister_memory_area(kvm_context_t, uint64_t phys_start,
- unsigned long len);
int kvm_is_containing_region(kvm_context_t kvm, unsigned long phys_start,
unsigned long size);
int kvm_register_phys_mem(kvm_context_t kvm, unsigned long phys_start,
void *userspace_addr, unsigned long len, int log);
-int kvm_get_dirty_pages(kvm_context_t, unsigned long phys_addr, void *buf);
int kvm_get_dirty_pages_range(kvm_context_t kvm, unsigned long phys_addr,
unsigned long end_addr, void *opaque,
int (*cb)(unsigned long start,