diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 2d1aa9ebd81411d5487a80311b76b2c0a6d25819..fe76d5568b9f4d495beaa37364f996a0825f7bc5 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -3481,6 +3481,10 @@ doCoreDump(virQEMUDriverPtr driver, "memory-only dump")); goto cleanup; } + + if (!qemuMigrationIsAllowed(driver, vm, vm->def, false, false)) + goto cleanup; + ret = qemuMigrationToFile(driver, vm, fd, 0, path, qemuCompressProgramName(compress), false, QEMU_ASYNC_JOB_DUMP);