From: Michal Privoznik Date: Mon, 7 Nov 2022 13:54:33 +0000 (+0100) Subject: qemu: Acquire QUERY job in qemuDomainQueryWakeupSuspendSupport() X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b697b702aca77a5bf98cbee20a2c8c0c953c8816;p=libvirt.git qemu: Acquire QUERY job in qemuDomainQueryWakeupSuspendSupport() The qemuDomainQueryWakeupSuspendSupport() does not change state of the domain as it just runs 'query-current-machine' QMP command. Therefore, there's no need for it to acquire MODIFY job, QUERY job is perfectly okay. Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 7c8fc8949c..56b809617a 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -16323,7 +16323,7 @@ qemuDomainQueryWakeupSuspendSupport(virDomainObj *vm, if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_QUERY_CURRENT_MACHINE)) return -1; - if (virDomainObjBeginJob(vm, VIR_JOB_MODIFY) < 0) + if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0) return -1; if ((ret = virDomainObjCheckActive(vm)) < 0)