libvirt/src
Michal Privoznik 954427c354 virQEMUCapsInitQMP: Don't dispose locked @vm
When creating qemu capabilities, a dummy virDomainObj is created just
because our monitor code expects that. However, the object is created
locked already. Then, under cleanup label, we simply unref the object
which results in whole domain object to be disposed. The object lock
is destroyed subsequently, but hey - it's still locked:

==24845== Thread #14's call to pthread_mutex_destroy failed
==24845==    with error code 16 (EBUSY: Device or resource busy)
==24845==    at 0x4C3024E: pthread_mutex_destroy (in /usr/lib64/valgrind/vgpreload_helgrind-amd64-linux.so)
==24845==    by 0x531F72E: virMutexDestroy (virthread.c:83)
==24845==    by 0x5302977: virObjectLockableDispose (virobject.c:237)
==24845==    by 0x5302A89: virObjectUnref (virobject.c:265)
==24845==    by 0x1DD37866: virQEMUCapsInitQMP (qemu_capabilities.c:3397)
==24845==    by 0x1DD37CC6: virQEMUCapsNewForBinary (qemu_capabilities.c:3481)
==24845==    by 0x1DD381E2: virQEMUCapsCacheLookup (qemu_capabilities.c:3609)
==24845==    by 0x1DD30F8A: virQEMUCapsInitGuest (qemu_capabilities.c:744)
==24845==    by 0x1DD31889: virQEMUCapsInit (qemu_capabilities.c:1020)
==24845==    by 0x1DD7DD36: virQEMUDriverCreateCapabilities (qemu_conf.c:888)
==24845==    by 0x1DDC57C0: qemuStateInitialize (qemu_driver.c:803)
==24845==    by 0x53DC743: virStateInitialize (libvirt.c:777)
==24845==

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2015-03-10 17:32:12 +01:00
..
access build: fix mingw printing of pid 2014-12-08 15:01:24 -07:00
bhyve Implement VIR_CONNECT_BASELINE_CPU_MIGRATABLE in the x86 cpu driver 2015-03-02 07:59:12 +01:00
conf network_conf: Turn struct _virNetworkObjList private 2015-03-09 14:03:30 +01:00
cpu Trivially implement VIR_CONNECT_BASELINE_CPU_MIGRATABLE for non-x86 cpus 2015-03-02 07:59:12 +01:00
esx Add flags argument to virStorageVolDefParse* 2015-03-02 08:07:11 +01:00
hyperv Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
interface Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
libxl libxl: remove unneeded cleanup_unlock label 2015-03-05 09:05:35 -07:00
locking sanlock: Don't spam logs with "target pid not found" 2015-03-09 13:36:40 +01:00
lxc memtune: change the way how we store unlimited value 2015-03-06 11:52:24 +01:00
network Use virBitmapNextClearBit in networkNextClassID 2015-03-10 13:45:51 +01:00
node_device SRIOV NIC offload feature discovery 2015-03-05 11:31:05 +01:00
nwfilter Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
openvz memtune: change the way how we store unlimited value 2015-03-06 11:52:24 +01:00
parallels network_conf: Turn virNetworkObjList into virObject 2015-03-09 14:03:30 +01:00
phyp phyp: Fix error messages mentioning memory 2015-03-02 14:39:58 +01:00
qemu virQEMUCapsInitQMP: Don't dispose locked @vm 2015-03-10 17:32:12 +01:00
remote remote: Implement the remote plumbing for virDomainGetIOThreadsInfo 2015-03-06 06:49:32 -05:00
rpc virnet*: Don't unlock object in dispose 2015-03-10 12:36:08 +01:00
secret Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
security security: Resolve Coverity RESOURCE_LEAK 2015-02-14 07:31:36 -05:00
storage iscsi: Adjust error message for findStorageSources backend 2015-03-02 22:57:27 -05:00
test network_conf: Turn virNetworkObjList into virObject 2015-03-09 14:03:30 +01:00
uml Trivially support DomainHasManagedSaveImage 2015-02-06 12:52:50 +01:00
util memtune: change the way how we store unlimited value 2015-03-06 11:52:24 +01:00
vbox Add flags argument to virStorageVolDefParse* 2015-03-02 08:07:11 +01:00
vmware Trivially support DomainHasManagedSaveImage 2015-02-06 12:52:50 +01:00
vmx conf: Allocate domain definition with the new helper 2015-02-20 17:43:05 +01:00
xen conf: Separate helper for creating domain objects 2015-02-20 17:43:05 +01:00
xenapi Trivially support DomainHasManagedSaveImage 2015-02-06 12:52:50 +01:00
xenconfig conf: Allocate domain definition with the new helper 2015-02-20 17:43:05 +01:00
check-aclperms.pl
check-aclrules.pl
check-driverimpls.pl Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
check-drivername.pl
check-symfile.pl
check-symsorting.pl
datatypes.c Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
datatypes.h Remove all secondary driver private data fields 2015-01-27 12:02:04 +00:00
driver-hypervisor.h Implement public API for virDomainGetIOThreadsInfo 2015-03-06 06:49:32 -05:00
driver-interface.h Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
driver-network.h Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
driver-nodedev.h Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
driver-nwfilter.h Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
driver-secret.h Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
driver-state.h
driver-storage.h Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
driver-stream.h
driver.c Search for schemas and cpu_map.xml in source tree 2015-02-19 15:25:04 +01:00
driver.h Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
dtrace2systemtap.pl
fdstream.c storage: tweak condition to properly test lseek 2015-03-04 14:51:44 +01:00
fdstream.h
gnutls_1_0_compat.h
internal.h Conditionalize use of -Wno-suggest-attribute=format pragma 2015-01-16 17:12:27 +00:00
libvirt_atomic.syms
libvirt_driver_modules.syms
libvirt_esx.syms
libvirt_gnutls.syms
libvirt_internal.h don't disable state driver when libvirtd is not built 2015-01-27 12:02:04 +00:00
libvirt_libssh2.syms
libvirt_linux.syms
libvirt_lxc.syms
libvirt_openvz.syms
libvirt_private.syms network_conf: Turn virNetworkObjList into virObject 2015-03-09 14:03:30 +01:00
libvirt_probes.d Add systemd/dtrace probes for DBus APIs 2015-01-15 11:07:13 +00:00
libvirt_public.syms Implement public API for virDomainGetIOThreadsInfo 2015-03-06 06:49:32 -05:00
libvirt_qemu_probes.d
libvirt_qemu.syms
libvirt_remote.syms
libvirt_sasl.syms
libvirt_vmware.syms
libvirt_vmx.syms
libvirt_xenconfig.syms Revert "src/xenconfig: Xen-xl parser" 2015-01-12 10:15:13 -07:00
libvirt_xenxlconfig.syms Introduce support for parsing/formatting Xen xl config format 2015-01-14 08:28:50 -07:00
libvirt-domain-snapshot.c
libvirt-domain.c qemu: fix memory leak in qemuAgentGetFSInfo 2015-03-10 15:29:28 +01:00
libvirt-host.c Add VIR_CONNECT_BASELINE_CPU_MIGRATABLE flag 2015-03-02 07:59:12 +01:00
libvirt-interface.c iface-define: update and unify documentation 2015-03-09 14:47:07 +01:00
libvirt-lxc.c Remove unnecessary curly brackets in rest of src/[a-n]*/ 2014-11-14 17:13:36 +01:00
libvirt-lxc.pc.in Fix build-time pkg-config files in VPATH 2014-11-06 15:59:28 +01:00
libvirt-network.c net-define: update or unify documentation 2015-03-09 14:48:38 +01:00
libvirt-nodedev.c Remove unnecessary curly brackets in rest of src/[a-n]*/ 2014-11-14 17:13:36 +01:00
libvirt-nwfilter.c
libvirt-qemu.c
libvirt-qemu.pc.in Fix build-time pkg-config files in VPATH 2014-11-06 15:59:28 +01:00
libvirt-secret.c
libvirt-storage.c pool-define: update and unify documentation 2015-03-09 14:47:53 +01:00
libvirt-stream.c
libvirt.c Removing probing of secondary drivers 2015-01-27 12:02:04 +00:00
libvirt.conf
libvirt.pc.in Fix build-time pkg-config files in VPATH 2014-11-06 15:59:28 +01:00
lock_protocol-structs
lxc_monitor_protocol-structs
lxc_protocol-structs
Makefile.am conf: Move numatune_conf to numa_conf 2015-02-20 17:43:03 +01:00
nodeinfo.c Fix virCgroupGetPercpuStats with non-continuous present CPUs 2015-01-22 17:01:11 +01:00
nodeinfo.h Fix virCgroupGetPercpuStats with non-continuous present CPUs 2015-01-22 17:01:11 +01:00
nodeinfopriv.h
qemu_protocol-structs
README
remote_protocol-structs remote: Implement the remote plumbing for virDomainGetIOThreadsInfo 2015-03-06 06:49:32 -05:00
virkeepaliveprotocol-structs
virnetprotocol-structs

       libvirt library code README
       ===========================

The directory provides the bulk of the libvirt codebase. Everything
except for the libvirtd daemon and client tools. The build uses a
large number of libtool convenience libraries - one for each child
directory, and then links them together for the final libvirt.so,
although some bits get linked directly to libvirtd daemon instead.

The files directly in this directory are supporting the public API
entry points & data structures.

There are two core shared modules to be aware of:

 * util/  - a collection of shared APIs that can be used by any
            code. This directory is always in the include path
            for all things built

 * conf/  - APIs for parsing / manipulating all the official XML
            files used by the public API. This directory is only
            in the include path for driver implementation modules

 * vmx/   - VMware VMX config handling (used by esx/ and vmware/)


Then there are the hypervisor implementations:

 * bhyve         - bhyve - The BSD Hypervisor
 * esx/          - VMware ESX and GSX support using vSphere API over SOAP
 * hyperv/       - Microsoft Hyper-V support using WinRM
 * lxc/          - Linux Native Containers
 * openvz/       - OpenVZ containers using cli tools
 * phyp/         - IBM Power Hypervisor using CLI tools over SSH
 * qemu/         - QEMU / KVM using qemu CLI/monitor
 * remote/       - Generic libvirt native RPC client
 * test/         - A "mock" driver for testing
 * uml/          - User Mode Linux
 * vbox/         - Virtual Box using native API
 * vmware/       - VMware Workstation and Player using the vmrun tool
 * xen/          - Xen using hypercalls, XenD SEXPR & XenStore
 * xenapi/       - Xen using libxenserver


Finally some secondary drivers that are shared for several HVs.
Currently these are used by LXC, OpenVZ, QEMU, UML and Xen drivers.
The ESX, Hyper-V, Power Hypervisor, Remote, Test & VirtualBox drivers all
implement the secondary drivers directly

 * cpu/          - CPU feature management
 * interface/    - Host network interface management
 * network/      - Virtual NAT networking
 * nwfilter/     - Network traffic filtering rules
 * node_device/  - Host device enumeration
 * secret/       - Secret management
 * security/     - Mandatory access control drivers
 * storage/      - Storage management drivers


Since both the hypervisor and secondary drivers can be built as
dlopen()able modules, it is *FORBIDDEN* to have build dependencies
between these directories. Drivers are only allowed to depend on
the public API, and the internal APIs in the util/ and conf/
directories