From b697b702aca77a5bf98cbee20a2c8c0c953c8816 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Mon, 7 Nov 2022 14:54:33 +0100 Subject: [PATCH] qemu: Acquire QUERY job in qemuDomainQueryWakeupSuspendSupport() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/qemu/qemu_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2