]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix guest-sync response time in qga command
authorray <honglei.wang@smartx.com>
Wed, 21 Feb 2024 14:45:36 +0000 (06:45 -0800)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 22 Feb 2024 08:51:23 +0000 (09:51 +0100)
commit04397de2a165f03ed66aa0bdb807eb7b33bb6aa6
tree3379a6e35238df3efd162e474f3904755bec8f08
parent737e3daf5ac1dd5dc4b391b9a1a92c8c8ad704a3
qemu: Fix guest-sync response time in qga command

The current implementation sets the guest-sync timeout to the
smaller value between the default value (QEMU_AGENT_WAIT_TIME)
and agent->timeout, without considering the timeout passed
via the qga command.

This patch enhances the guest-sync timeout logic to use the
minimum value among the default value, agent->timeout, and
the timeout passed via the qga command.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/590
Signed-off-by: ray <honglei.wang@smartx.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_agent.c