* [PATCH] colo: Don't dump colo cache if dump-guest-core=off
@ 2021-07-04 16:14 Lukas Straub
2021-11-02 16:26 ` Juan Quintela
0 siblings, 1 reply; 2+ messages in thread
From: Lukas Straub @ 2021-07-04 16:14 UTC (permalink / raw)
To: qemu-devel
Cc: zhang.zhanghailiang, Dr. David Alan Gilbert, Rao, Lei, Juan Quintela
[-- Attachment #1: Type: text/plain, Size: 987 bytes --]
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: Lukas Straub <lukasstraub2@web.de>
---
migration/ram.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/migration/ram.c b/migration/ram.c
index 723af67c2e..0797d0d222 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -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__) */
@@ -3356,6 +3358,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);
+ }
}
}
--
2.20.1
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] colo: Don't dump colo cache if dump-guest-core=off
2021-07-04 16:14 [PATCH] colo: Don't dump colo cache if dump-guest-core=off Lukas Straub
@ 2021-11-02 16:26 ` Juan Quintela
0 siblings, 0 replies; 2+ messages in thread
From: Juan Quintela @ 2021-11-02 16:26 UTC (permalink / raw)
To: Lukas Straub
Cc: zhang.zhanghailiang, qemu-devel, Rao, Lei, Dr. David Alan Gilbert
Lukas Straub <lukasstraub2@web.de> wrote:
> 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: Lukas Straub <lukasstraub2@web.de>
Reviewed-by: Juan Quintela <quintela@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-02 16:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-04 16:14 [PATCH] colo: Don't dump colo cache if dump-guest-core=off Lukas Straub
2021-11-02 16:26 ` Juan Quintela
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.