libvirt/src/openvz
Jiri Denemark b449c27041 qemu: Pass correct qemuCaps to virDomainDeviceDefPostParse
Since qemuDomainDeviceDefPostParse callback requires qemuCaps, we need
to make sure it gets the capabilities stored in the domain's private
data if the domain is running. Passing NULL may cause QEMU capabilities
probing to be triggered in case QEMU binary changed in the meantime.
When this happens while a running domain object is locked, QMP event
delivered to the domain before QEMU capabilities probing finishes will
deadlock the event loop.

QEMU capabilities lookup (via domainPostParseDataAlloc callback) is
hidden inside virDomainDeviceDefPostParseOne with no way to pass
qemuCaps to virDomainDeviceDef* functions. This patch fixes all
remaining paths leading to virDomainDeviceDefPostParse.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2019-08-09 13:55:54 +02:00
..
Makefile.inc.am maint: Add filetype annotations to Makefile.inc.am 2019-04-12 16:55:38 +02:00
openvz_conf.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
openvz_conf.h src/openvz: use #pragma once in headers 2019-06-19 17:12:30 +02:00
openvz_driver.c qemu: Pass correct qemuCaps to virDomainDeviceDefPostParse 2019-08-09 13:55:54 +02:00
openvz_driver.h src/openvz: use #pragma once in headers 2019-06-19 17:12:30 +02:00
openvz_util.c
openvz_util.h src/openvz: use #pragma once in headers 2019-06-19 17:12:30 +02:00