libvirt/src/qemu
Jiri Denemark 6e7c33dad7 qemu: Pass correct qemuCaps to virDomainDefParseString
Since qemuDomainDefPostParse 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.

This patch fixes all paths leading to virDomainDefParseString.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2019-08-09 13:55:54 +02:00
..
EVENTHANDLERS.txt
libvirtd_qemu.aug qemu: Add support for overriding max threads per process limit 2019-07-24 15:59:49 -06:00
Makefile.inc.am
MIGRATION.txt
qemu_agent.c
qemu_agent.h
qemu_alias.c
qemu_alias.h
qemu_block.c qemu: block: Use simple backing stores string format if possible 2019-07-25 13:21:32 +02:00
qemu_block.h qemu: block: Use simple backing stores string format if possible 2019-07-25 13:21:32 +02:00
qemu_blockjob.c qemu: Add -blockdev support for block commit job 2019-07-29 13:58:26 +02:00
qemu_blockjob.h qemu: Add -blockdev support for block commit job 2019-07-29 13:58:26 +02:00
qemu_capabilities.c qemu: conf: Cache domCaps in qemuCaps 2019-08-06 19:45:49 -04:00
qemu_capabilities.h qemu: conf: Cache domCaps in qemuCaps 2019-08-06 19:45:49 -04:00
qemu_capspriv.h
qemu_cgroup.c qemu: Add support for overriding max threads per process limit 2019-07-24 15:59:49 -06:00
qemu_cgroup.h
qemu_command.c util: simplify virCommand APIs for env passthrough. 2019-08-07 16:54:02 +01:00
qemu_command.h qemu: Add possibility to prepare top image only for attachment via blockdev 2019-07-25 13:21:32 +02:00
qemu_conf.c qemu: conf: Cache domCaps in qemuCaps 2019-08-06 19:45:49 -04:00
qemu_conf.h qemu: conf: add virQEMUDriverGetDomainCapabilities 2019-08-06 19:45:49 -04:00
qemu_domain_address.c qemu: address: remove useless comment 2019-07-16 17:00:36 +02:00
qemu_domain_address.h
qemu_domain.c qemu: Pass qemuCaps to qemuDomainDefFormatBufInternal 2019-08-09 13:55:54 +02:00
qemu_domain.h qemu: Pass qemuCaps to qemuDomainDefFormatBufInternal 2019-08-09 13:55:54 +02:00
qemu_driver.c qemu: Pass correct qemuCaps to virDomainDefParseString 2019-08-09 13:55:54 +02:00
qemu_driver.h
qemu_extdevice.c tpm: Run swtpm_setup with less parameters on incoming migration 2019-07-27 07:56:00 -04:00
qemu_extdevice.h tpm: Run swtpm_setup with less parameters on incoming migration 2019-07-27 07:56:00 -04:00
qemu_firmware.c util: get rid of virGetEnv{Allow,Block}SUID functions 2019-08-07 16:54:02 +01:00
qemu_firmware.h
qemu_hostdev.c qemu: De-duplicate some path definitions 2019-07-03 09:33:45 +02:00
qemu_hostdev.h
qemu_hotplug.c lib: Unify PCI address formatting 2019-08-05 19:42:15 +02:00
qemu_hotplug.h
qemu_hotplugpriv.h
qemu_interface.c
qemu_interface.h
qemu_migration_cookie.c qemu: Pass qemuCaps to qemuDomainDefFormatBufInternal 2019-08-09 13:55:54 +02:00
qemu_migration_cookie.h
qemu_migration_params.c
qemu_migration_params.h
qemu_migration_paramspriv.h
qemu_migration.c qemu: Pass qemuCaps to qemuMigrationAnyPrepareDef 2019-08-09 13:55:54 +02:00
qemu_migration.h qemu: Pass qemuCaps to qemuMigrationAnyPrepareDef 2019-08-09 13:55:54 +02:00
qemu_monitor_json.c qemu: Remove unnecessary check in qemuMonitorJSONGetJobInfoOne 2019-07-23 10:55:56 -04:00
qemu_monitor_json.h qemu: monitor: Add APIs for 'blockdev-create' 2019-07-18 17:59:33 +02:00
qemu_monitor_priv.h
qemu_monitor_text.c qemu: Remove qemuMonitorTextSetCPU 2019-06-20 15:59:19 +02:00
qemu_monitor_text.h qemu: Remove qemuMonitorTextSetCPU 2019-06-20 15:59:19 +02:00
qemu_monitor.c qemu: driver: blockdevize qemuDomainGetBlockJobInfo 2019-07-25 13:21:32 +02:00
qemu_monitor.h qemu: monitor: Add APIs for 'blockdev-create' 2019-07-18 17:59:33 +02:00
qemu_process.c qemu: Pass qemuCaps to qemuDomainDefFormatBufInternal 2019-08-09 13:55:54 +02:00
qemu_process.h
qemu_processpriv.h
qemu_qapi.c
qemu_qapi.h
qemu_security.c tpm: Set transationStarted to false if commit failed 2019-07-26 16:32:25 -05:00
qemu_security.h qemu_security: Implement qemuSecurityMoveImageMetadata 2019-07-03 08:36:04 +02:00
qemu_tpm.c tpm: Run swtpm_setup with less parameters on incoming migration 2019-07-27 07:56:00 -04:00
qemu_tpm.h tpm: Run swtpm_setup with less parameters on incoming migration 2019-07-27 07:56:00 -04:00
qemu.conf qemu: Add support for overriding max threads per process limit 2019-07-24 15:59:49 -06:00
test_libvirtd_qemu.aug.in qemu: Add support for overriding max threads per process limit 2019-07-24 15:59:49 -06:00
THREADS.txt