mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
qemu: Restart CPUs with valid async job type when doing external snapshots
When restarting CPUs after an external snapshot, the restarting function was called without the appropriate async job type. This caused that a new sync job wasn't created and allowed races in the monitor.
This commit is contained in:
parent
84e27a6f2a
commit
46b0c93332
@ -11482,7 +11482,7 @@ endjob:
|
||||
if (resume && vm && virDomainObjIsActive(vm) &&
|
||||
qemuProcessStartCPUs(driver, vm, conn,
|
||||
VIR_DOMAIN_RUNNING_UNPAUSED,
|
||||
QEMU_ASYNC_JOB_NONE) < 0) {
|
||||
QEMU_ASYNC_JOB_SNAPSHOT) < 0) {
|
||||
virDomainEventPtr event = NULL;
|
||||
event = virDomainEventNewFromObj(vm,
|
||||
VIR_DOMAIN_EVENT_SUSPENDED,
|
||||
|
Loading…
Reference in New Issue
Block a user