mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 15:52:55 +00:00
qemu: dump: Report better error when dumping VM with passthrough devices
For the regular dump operation we migrate the VM to a file. This won't work when the VM has passthrough devices assigned. Rather than reporting a cryptic error from qemu run our check whether it can be migrated. This does not influence the memory-only dump that is allowed with passthrough devices. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=874418
This commit is contained in:
parent
3d41eb310e
commit
315fba9c60
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user