Skip to content
Snippets Groups Projects
Commit e5fdf920 authored by Lukas Straub's avatar Lukas Straub Committed by Juan Quintela
Browse files

colo: Don't dump colo cache if dump-guest-core=off


One might set dump-guest-core=off to make coredumps smaller and
still allow to debug many qemu bugs. Extend this option to the colo
cache.

Signed-off-by: default avatarLukas Straub <lukasstraub2@web.de>
Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
parent 2b9f6bf3
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,8 @@
#include "multifd.h"
#include "sysemu/runstate.h"
#include "hw/boards.h" /* for machine_dump_guest_core() */
#if defined(__linux__)
#include "qemu/userfaultfd.h"
#endif /* defined(__linux__) */
......@@ -3542,6 +3544,10 @@ int colo_init_ram_cache(void)
}
return -errno;
}
if (!machine_dump_guest_core(current_machine)) {
qemu_madvise(block->colo_cache, block->used_length,
QEMU_MADV_DONTDUMP);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment