libvirt/src/qemu
Nikolay Shirokovskiy aaf2992d90 qemu: agent: fix unsafe agent access
qemuDomainObjExitAgent is unsafe.

First it accesses domain object without domain lock.
Second it uses outdated logic that goes back to commit 79533da1 of
year 2009 when code was quite different. (unref function
instead of unreferencing only unlocked and disposed object
in case of last reference and leaved unlocking to the caller otherwise).
Nowadays this logic may lead to disposing locked object
i guess.

Another problem is that the callers of qemuDomainObjEnterAgent
use domain object again (namely priv->agent) without domain lock.

This patch address these two problems.

qemuDomainGetAgent is dropped as unused.
2016-11-23 11:31:28 +03:00
..
EVENTHANDLERS.txt
libvirtd_qemu.aug qemu: conf: add option for tuning debug logging level 2016-11-09 16:52:40 +01:00
MIGRATION.txt
qemu_agent.c qemu: agent: give better error messages whe agent monitor is down 2016-09-20 16:27:58 +02:00
qemu_agent.h
qemu_alias.c qemu: Generate memory device aliases according to slot number 2016-11-10 17:36:55 +01:00
qemu_alias.h qemu: Generate memory device aliases according to slot number 2016-11-10 17:36:55 +01:00
qemu_blockjob.c
qemu_blockjob.h
qemu_capabilities.c cpu: Rename cpuGetModels 2016-11-15 15:49:15 +01:00
qemu_capabilities.h qemu: Remove erroneously placed comments for numerical ordering 2016-11-10 10:55:31 -05:00
qemu_capspriv.h qemu: Store loaded QEMU binary ctime in qemuCaps 2016-11-04 09:25:58 +01:00
qemu_cgroup.c Cleanup switch statements on the hostdev subsystem type 2016-11-11 16:58:56 -05:00
qemu_cgroup.h qemu: Add missing 'p' to qemuCgrouEmulatorAllNodesRestore 2016-09-13 12:24:02 +02:00
qemu_command.c Refactoring: Use virHostdevIsSCSIDevice() 2016-11-22 14:37:36 +01:00
qemu_command.h qemu: command: Add debug option for gluster volumes 2016-11-09 16:52:40 +01:00
qemu_conf.c Refactoring: Use virHostdevIsSCSIDevice() 2016-11-22 14:37:36 +01:00
qemu_conf.h qemu: conf: add option for tuning debug logging level 2016-11-09 16:52:40 +01:00
qemu_domain_address.c qemu: initially reserve one open pcie-root-port for hotplug 2016-11-14 14:23:48 -05:00
qemu_domain_address.h qemu: set/use proper pciConnectFlags during hotplug 2016-11-14 14:09:10 -05:00
qemu_domain.c qemu: agent: fix unsafe agent access 2016-11-23 11:31:28 +03:00
qemu_domain.h qemu: agent: fix unsafe agent access 2016-11-23 11:31:28 +03:00
qemu_driver.c qemu: agent: fix unsafe agent access 2016-11-23 11:31:28 +03:00
qemu_driver.h
qemu_hostdev.c
qemu_hostdev.h
qemu_hotplug.c qemu: set/use proper pciConnectFlags during hotplug 2016-11-14 14:09:10 -05:00
qemu_hotplug.h qemu: Add support for hot/cold-(un)plug of shmem devices 2016-11-02 17:36:50 +01:00
qemu_hotplugpriv.h
qemu_interface.c
qemu_interface.h
qemu_migration.c qemu: agent: handle agent connection errors in one place 2016-11-23 11:14:11 +03:00
qemu_migration.h
qemu_monitor_json.c qemu: monitor: Extract qemu cpu id along with other data 2016-11-21 17:19:48 +01:00
qemu_monitor_json.h qemu: monitor: Add code to retrieve and store QMP schema data 2016-11-09 16:50:32 +01:00
qemu_monitor_text.c qemu: monitor: Extract qemu cpu id along with other data 2016-11-21 17:19:48 +01:00
qemu_monitor_text.h
qemu_monitor.c qemu: monitor: Properly propagate the 'qemu_id' field through the matcher 2016-11-22 10:44:17 +01:00
qemu_monitor.h qemu: monitor: Extract halted state to a bitmap indexed by cpu id 2016-11-21 17:19:48 +01:00
qemu_parse_command.c qemu: process: Set current vcpu count to maximum if it was not specified 2016-11-21 14:35:20 +01:00
qemu_parse_command.h
qemu_process.c qemu: drop write-only agentStart 2016-11-23 11:31:14 +03:00
qemu_process.h
qemu_processpriv.h
qemu.conf tests: Adapt to gluster_debug_level in qemu.conf 2016-11-21 10:50:48 +01:00
test_libvirtd_qemu.aug.in tests: Adapt to gluster_debug_level in qemu.conf 2016-11-21 10:50:48 +01:00
THREADS.txt