aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCao jin <caoj.fnst@cn.fujitsu.com>2016-09-12 14:34:56 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2016-09-13 19:09:43 +0200
commitc2cd627ddb13f62557aaf66305edb03cc3d9612d (patch)
tree371e69422977c0c55d704199f10274c87a10562f /include
parenta952c18683bbfa67f6c508c7417001a0bd1b2b97 (diff)
kvm-all: drop kvm_setup_guest_memory
kvm_setup_guest_memory only does "madvise to QEMU_MADV_DONTFORK" and is only called by ram_block_add, which actually is duplicate code. Bonus: add simple comment for kvm_has_sync_mmu to make life easier. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> Message-Id: <1473662096-32598-1-git-send-email-caoj.fnst@cn.fujitsu.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sysemu/kvm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h
index c9c243631e..4938f65c7a 100644
--- a/include/sysemu/kvm.h
+++ b/include/sysemu/kvm.h
@@ -221,7 +221,6 @@ int kvm_destroy_vcpu(CPUState *cpu);
#ifdef NEED_CPU_H
#include "cpu.h"
-void kvm_setup_guest_memory(void *start, size_t size);
void kvm_flush_coalesced_mmio_buffer(void);
int kvm_insert_breakpoint(CPUState *cpu, target_ulong addr,