]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: make monitor command API available during async jobs
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Wed, 22 Jun 2016 13:17:50 +0000 (16:17 +0300)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 23 Jun 2016 13:18:31 +0000 (15:18 +0200)
commit6606ea96a119316799090f1e6561500588ed32cb
tree649b07360e7758ab90b980ed452e70ca70e3f0b6
parent43d2b6f2aa59a79a1f2d4e4638c7a8142a6a9773
qemu: make monitor command API available during async jobs

  One can not issue monitor commands manually during async calls thru
designated API while this could be useful for testing/debugging purposes.
qemuDomainQemuMonitorCommand uses job of type QEMU_JOB_MODIFY and any async
call disable parallel execution of this type of job. The only state that is
changed is taint variable. AFAIU the only place we can mess is resetting
taint flag in qemuProcessStop routine under some async job. But this can not
happen thanx to both virDomainObjIsActive check in qemuDomainQemuMonitorCommand
and resetting active status in qemuProcessStop before taint flag.

  Change job type to QEMU_JOB_QUERY and thus make the API call available for
most of async jobs.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
src/qemu/qemu_driver.c