From 236b5e6abcb305d91c197d4f8e326e6db1c14994 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 5 Oct 2008 16:56:07 +0200 Subject: [PATCH] Add missing declarations for memory aliasing functions on i386, the compiler guesses the argument types incorrectly and all hell breaks loose. Signed-off-by: Avi Kivity --- qemu-kvm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qemu-kvm.h b/qemu-kvm.h index 283f13a56a..9f988a1c74 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -47,6 +47,10 @@ void *kvm_cpu_create_phys_mem(target_phys_addr_t start_addr, void kvm_cpu_destroy_phys_mem(target_phys_addr_t start_addr, unsigned long size); int kvm_setup_guest_memory(void *area, unsigned long size); +int kvm_qemu_create_memory_alias(uint64_t phys_start, + uint64_t len, + uint64_t target_phys); +int kvm_qemu_destroy_memory_alias(uint64_t phys_start); int kvm_arch_qemu_create_context(void); -- 2.11.4.GIT