libvirt/src/vmware
Michal Privoznik d301bc8d08 lib: Grab write lock when modifying list of domains
In some places where virDomainObjListForEach() is called the
passed callback calls virDomainObjListRemoveLocked(). Well, this
is unsafe, because the former only grabs a read lock but the
latter modifies the list.
I've identified the following unsafe calls:

- qemuProcessReconnectAll()
- libxlReconnectDomains()

The rest seem to be safe.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2019-09-07 08:22:30 +02:00
..
Makefile.inc.am maint: Add filetype annotations to Makefile.inc.am 2019-04-12 16:55:38 +02:00
vmware_conf.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
vmware_conf.h src/vmware: use #pragma once in headers 2019-06-19 17:12:33 +02:00
vmware_driver.c lib: Grab write lock when modifying list of domains 2019-09-07 08:22:30 +02:00
vmware_driver.h src/vmware: use #pragma once in headers 2019-06-19 17:12:33 +02:00