diff --git a/src/qemu/qemu_checkpoint.c b/src/qemu/qemu_checkpoint.c index c06bfe6a2197a21281692795ef048a95d0396a2e..a387e7dfe743eecde928cf2eed70be4f7a5e4aed 100644 --- a/src/qemu/qemu_checkpoint.c +++ b/src/qemu/qemu_checkpoint.c @@ -262,9 +262,7 @@ qemuCheckpointDiscardBitmaps(virDomainObjPtr vm, actions = virJSONValueNewArray(); - qemuDomainObjEnterMonitor(driver, vm); - blockNamedNodeData = qemuMonitorBlockGetNamedNodeData(priv->mon); - if (qemuDomainObjExitMonitor(priv->driver, vm) < 0 || !blockNamedNodeData) + if (!(blockNamedNodeData = qemuBlockGetNamedNodeData(vm, QEMU_ASYNC_JOB_NONE))) return -1; for (i = 0; i < chkdef->ndisks; i++) {