aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2014-09-25 21:07:54 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-09-26 13:35:08 +0200
commit541be9274e8ef227fb1b50ce124fd2cc2dce81a5 (patch)
tree7854d5e16bc0c653afc3126fa8a9b8c0639775e6 /kvm-all.c
parenta697d240ff0f913da3f8cf082ed49acceccdd569 (diff)
downloadqemu-541be9274e8ef227fb1b50ce124fd2cc2dce81a5.zip
qemu-541be9274e8ef227fb1b50ce124fd2cc2dce81a5.tar.gz
qemu-541be9274e8ef227fb1b50ce124fd2cc2dce81a5.tar.bz2
kvm/valgrind: don't mark memory as initialized
since commit 7dda5dc82a77 ("migration: initialize RAM to zero") the guest memory is defined zero. No need to call valgrind on guest memory. This reverts commit 62fe83318d2f ("qemu: Use valgrind annotations to mark kvm guest memory as defined") thus speeding up kvm start if <includedir>/valgrind/valgrind.h is available. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 6c6586f..4afcd05 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -44,10 +44,6 @@
#include <sys/eventfd.h>
#endif
-#ifdef CONFIG_VALGRIND_H
-#include <valgrind/memcheck.h>
-#endif
-
/* KVM uses PAGE_SIZE in its definition of COALESCED_MMIO_MAX */
#define PAGE_SIZE TARGET_PAGE_SIZE
@@ -1959,9 +1955,6 @@ int kvm_has_intx_set_mask(void)
void kvm_setup_guest_memory(void *start, size_t size)
{
-#ifdef CONFIG_VALGRIND_H
- VALGRIND_MAKE_MEM_DEFINED(start, size);
-#endif
if (!kvm_has_sync_mmu()) {
int ret = qemu_madvise(start, size, QEMU_MADV_DONTFORK);