]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_agent: Issue guest-sync prior to every command
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 1 Feb 2012 14:44:53 +0000 (15:44 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 30 Mar 2012 16:16:17 +0000 (18:16 +0200)
commit075c8518c6cf0459682ed9a0b79f0974cd6ecee3
tree67b730eda722498c3565470626df68312ff1be4b
parentcde3c054fb11dfff7d7121f5a9fcdcf9eafe9810
qemu_agent: Issue guest-sync prior to every command

If we issue guest command and GA is not running, the issuing thread
will block endlessly. We can check for GA presence by issuing
guest-sync with unique ID (timestamp). We don't want to issue real
command as even if GA is not running, once it is started, it process
all commands written to GA socket.
src/qemu/qemu_agent.c