From: Boris Fiuczynski Date: Wed, 20 Jan 2016 12:13:45 +0000 (+0100) Subject: qemu: Align dump options for watchdog and on_crash events X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f73ad5d47e7e9c3d977e72e65b99a3c237a5e1bb;p=libvirt.git qemu: Align dump options for watchdog and on_crash events Having on_crash set to either coredump-destroy or coredump-restart creates core dumps with option memory-only in the directory specified by auto_dump_path. When a watchdog is triggered with the action dump the core dump is also placed into the directory specified by auto_dump_path but is created without the option memory-only. This patch sets the option memory-only also for core dumps created by the watchdog event. Signed-off-by: Boris Fiuczynski Reviewed-by: Bjoern Walk Reviewed-by: Stefan Zimmermann --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index abcdbe6a0b..37e348ef8a 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -3957,7 +3957,7 @@ static void processWatchdogEvent(virQEMUDriverPtr driver, virDomainObjPtr vm, in case VIR_DOMAIN_WATCHDOG_ACTION_DUMP: { char *dumpfile; - unsigned int flags = 0; + unsigned int flags = VIR_DUMP_MEMORY_ONLY; if (virAsprintf(&dumpfile, "%s/%s-%u", cfg->autoDumpPath,