libvirt/src
Wangyufei (James) 36ae35f02c qemuAgentDispose: Reset lastError
When an error occurred in qemuAgentIO, it will be saved in mon->lastError,
but it will not be freed at the end.  Present since commit c160ce33;
and compare to commit 9cc8a5af fixing the same problem in qemu_monitor.c.

==22219== 54 bytes in 1 blocks are definitely lost in loss record 982 of 1,379
==22219==    at 0x4C26B9B: malloc (vg_replace_malloc.c:263)
==22219==    by 0x8520521: strdup (in /lib64/libc-2.11.3.so)
==22219==    by 0x52E99CB: virStrdup (virstring.c:554)
==22219==    by 0x52B44C4: virCopyError (virerror.c:195)
==22219==    by 0x52B5123: virCopyLastError (virerror.c:312)
==22219==    by 0x10905877: qemuAgentIO (qemu_agent.c:660)
==22219==    by 0x52B6122: virEventPollDispatchHandles (vireventpoll.c:501)
==22219==    by 0x52B7AEA: virEventPollRunOnce (vireventpoll.c:647)
==22219==    by 0x52B5C1B: virEventRunDefaultImpl (virevent.c:274)
==22219==    by 0x54181FD: virNetServerRun (virnetserver.c:1112)
==22219==    by 0x11EF4D: main (libvirtd.c:1513)

Signed-off-by: Zhou Yimin <zhouyimin@huawei.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
2013-12-04 14:43:54 -07:00
..
access Avoid Coverity DEADCODE warning 2013-10-24 06:40:18 -04:00
conf maint: Kill usage of atoi() 2013-12-04 18:56:06 +01:00
cpu cpu: x86: Add internal CPUID features support and KVM feature bits 2013-11-08 09:44:42 +01:00
esx src: Align make output 2013-12-04 09:41:33 +01:00
hyperv src: Align make output 2013-12-04 09:41:33 +01:00
interface netcf: Don't complain when cleanup is called before init 2013-10-18 14:31:51 +02:00
libxl maint: fix comma style issues: xen 2013-11-20 09:14:54 -07:00
locking Don't depend on syslog.service 2013-11-19 21:49:53 +01:00
lxc LXC: Ensure security context is set when mounting images 2013-11-29 12:19:37 +00:00
network bridge_driver: Resolve Coverity CHECKED_RETURN warning 2013-12-04 06:27:20 -05:00
node_device maint: fix comma style issues: remaining code 2013-11-20 09:14:55 -07:00
nwfilter nwfilter: Remove Coverity DEADCODE warning 2013-12-04 06:27:19 -05:00
openvz maint: fix comma style issues: remaining drivers 2013-11-20 09:14:55 -07:00
parallels cleanup: Kill usage of access(PATH, F_OK) in favor of virFileExists() 2013-09-16 10:37:39 +02:00
phyp
qemu qemuAgentDispose: Reset lastError 2013-12-04 14:43:54 -07:00
remote sasl: Replace 'restep' label with 'continue' 2013-11-26 11:52:58 +01:00
rpc virnetserverclient: Fix conditional change HAVE_SASL to WITH_SASL 2013-12-04 06:27:20 -05:00
secret
security Don't overwrite errors from virConfReadFile 2013-12-04 15:40:23 +00:00
storage maint: Kill usage of atoi() 2013-12-04 18:56:06 +01:00
test maint: next release is 1.2.0 2013-11-25 07:31:08 -07:00
uml maint: avoid 'const fooPtr' in all remaining places 2013-10-14 14:34:38 -06:00
util virThreadPoolFree: Join worker threads 2013-12-04 16:36:46 +01:00
vbox vbox: handle errors of virDomainHostdevDefAlloc correctly 2013-12-02 10:59:21 +08:00
vmware VMware: Do version detection earlier 2013-10-11 09:10:23 -05:00
vmx esx: Fix floppy.fileName handling in the vmx file parser 2013-10-15 11:39:02 +01:00
xen maint: Kill usage of atoi() 2013-12-04 18:56:06 +01:00
xenapi maint: fix comma style issues: xen 2013-11-20 09:14:54 -07:00
xenxs maint: fix comma style issues: xen 2013-11-20 09:14:54 -07:00
check-aclperms.pl Fix naming of permission for detecting storage pools 2013-09-12 17:20:07 +01:00
check-aclrules.pl maint: ship .pl scripts as executables 2013-11-19 14:32:59 -07:00
check-driverimpls.pl
check-drivername.pl
check-symfile.pl
check-symsorting.pl maint: use LGPL correctly 2013-05-20 14:03:48 -06:00
datatypes.c Fix crash if OOM occurs when creating virConnectPtr 2013-09-24 10:51:28 +01:00
datatypes.h
driver.c Remove all direct use of getenv 2013-10-21 14:03:52 +01:00
driver.h libvirt: add new public API virConnectGetCPUModelNames 2013-09-23 15:41:50 -06:00
dtrace2systemtap.pl
fdstream.c Always open files in binary mode in virFDStreamOpenFileInternal 2013-09-24 14:27:41 +02:00
fdstream.h
gnutls_1_0_compat.h
internal.h
libvirt_atomic.syms
libvirt_daemon.syms
libvirt_driver_modules.syms
libvirt_esx.syms
libvirt_gnutls.syms
libvirt_internal.h
libvirt_libssh2.syms
libvirt_linux.syms
libvirt_lxc.syms
libvirt_openvz.syms
libvirt_private.syms qemu: Refactor qemuTranslateDiskSourcePool 2013-12-03 10:16:12 +01:00
libvirt_probes.d
libvirt_public.syms libvirt: add new public API virConnectGetCPUModelNames 2013-09-23 15:41:50 -06:00
libvirt_qemu_probes.d
libvirt_qemu.syms
libvirt_remote.syms build: fix build --without-remote 2013-10-04 17:01:47 -06:00
libvirt_sasl.syms
libvirt_vmware.syms VMware: Make version parsing testable and add tests 2013-09-20 08:23:31 -05:00
libvirt_vmx.syms VMX: Create virVMXFormatDisk() from HD and CD-ROM 2013-09-01 23:11:50 -05:00
libvirt_xenxs.syms
libvirt-lxc.c
libvirt-qemu.c
libvirt.c Doc: Explicitly declaring that nodedev-destroy only works for vHBA 2013-12-03 16:34:46 +08:00
libvirt.conf
lock_protocol-structs tests: check remaining .x files 2013-09-09 12:04:03 -06:00
lxc_monitor_protocol-structs tests: check remaining .x files 2013-09-09 12:04:03 -06:00
lxc_protocol-structs
Makefile.am storage: initial support for linking with libgfapi 2013-11-25 11:02:52 -07:00
nodeinfo.c nodeinfo: fix build on non-Linux 2013-11-06 17:36:44 -07:00
nodeinfo.h
qemu_protocol-structs
README
remote_protocol-structs virConnectGetCPUModelNames: implement the remote protocol 2013-09-23 15:50:35 -06: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:

 * 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