libvirt/src
Philipp Hahn 046b0a6972 xen_xm: Fix SIGSEGV in xenXMDomainDefineXML
On CentOS5 with xen-3.0.3:

 Program received signal SIGSEGV, Segmentation fault.
 virFree (ptrptr=0x8) at util/memory.c:310
 310         free(*(void**)ptrptr);
 (gdb) bt
 #0  virFree (ptrptr=0x8) at util/memory.c:310
 #1  0x00002aaaaae167c8 in xenXMDomainDefineXML (conn=0x694e80, xml=0x6b2ce0 "P\fk") at xen/xm_internal.c:1199
 #2  0x00002aaaaae070d7 in xenUnifiedDomainDefineXML (conn=0x8,
     xml=0x6ac040 "<domain type='xen'>\n  <name>pv</name>\n  <uuid>20291bc0-453a-4d6c-c6ac-4e5af63b932c</uuid>\n  <memory>1048576</memory>\n  <currentMemory>1048576</currentMemory>\n  <vcpu>1</vcpu>\n  <os>\n    <type arch='x8"...) at xen/xen_driver.c:1524
 #3  0x00002aaaaada7803 in virDomainDefineXML (conn=0x694e80,
     xml=0x6ac040 "<domain type='xen'>\n  <name>pv</name>\n  <uuid>20291bc0-453a-4d6c-c6ac-4e5af63b932c</uuid>\n  <memory>1048576</memory>\n  <currentMemory>1048576</currentMemory>\n  <vcpu>1</vcpu>\n  <os>\n    <type arch='x8"...) at libvirt.c:7823
 #4  0x0000000000426173 in cmdEdit (ctl=0x7fffffffb8e0, cmd=<value optimized out>) at virsh.c:14882
 #5  0x000000000041c9ce in vshCommandRun (ctl=0x7fffffffb8e0, cmd=0x658c50) at virsh.c:17712
 #6  0x000000000042c3b9 in main (argc=1, argv=<value optimized out>) at virsh.c:19317

Signed-off-by: Philipp Hahn <hahn@univention.de>
2012-02-06 12:57:27 +01:00
..
conf qemu: eliminate "Ignoring open failure" when using root-squash NFS 2012-02-03 16:47:43 -05:00
cpu build: prohibit raw malloc and free 2012-02-03 10:41:45 -07:00
esx maint: consolidate several .gitignore files 2012-02-03 15:27:16 -07:00
hyperv Fix version numbers for isAlive and setKeepAlive driver APIs 2011-11-24 14:44:59 +01:00
interface
libxl util: refactor virFileOpenAs 2012-02-03 16:47:39 -05:00
locking
lxc virterror.c: Fix several spelling mistakes 2012-02-03 11:32:51 -07:00
network network: fix testsuite regression 2012-02-01 16:42:33 -07:00
node_device npiv: Expose fabric_name outside 2011-12-07 18:42:08 +08:00
nwfilter Rename virXXXXMacAddr to virMacAddrXXX 2012-01-27 17:53:44 +00:00
openvz Rename virXXXXMacAddr to virMacAddrXXX 2012-01-27 17:53:44 +00:00
phyp Fix version numbers for isAlive and setKeepAlive driver APIs 2011-11-24 14:44:59 +01:00
qemu qemu: Fix seamless spice migration 2012-02-06 09:41:52 +01:00
remote block rebase: wire up remote protocol 2012-02-01 15:27:39 -07:00
rpc virterror.c: Fix several spelling mistakes 2012-02-03 11:32:51 -07:00
secret
security apparmor: Add missing comma 2012-02-06 09:22:46 +01:00
storage util: refactor virFileOpenAs 2012-02-03 16:47:39 -05:00
test Introduce new API for generating random numbers 2012-01-26 14:03:14 +00:00
uml Rename hash.h and hash.c to virhash.h and virhash.c 2012-01-26 14:11:13 +00:00
util util: refactor virFileOpenAs 2012-02-03 16:47:39 -05:00
vbox Rename virXXXXMacAddr to virMacAddrXXX 2012-01-27 17:53:44 +00:00
vmware Add new virDomainShutdownFlags API 2012-01-24 12:19:51 +01:00
vmx Rename virXXXXMacAddr to virMacAddrXXX 2012-01-27 17:53:44 +00:00
xen xen_xm: Fix SIGSEGV in xenXMDomainDefineXML 2012-02-06 12:57:27 +01:00
xenapi Rename virXXXXMacAddr to virMacAddrXXX 2012-01-27 17:53:44 +00:00
xenxs virterror.c: Fix several spelling mistakes 2012-02-03 11:32:51 -07:00
datatypes.c
datatypes.h src/datatypes.h: fix typo 2012-01-24 13:48:43 +01:00
driver.c
driver.h block rebase: add new API virDomainBlockRebase 2012-02-01 15:21:56 -07:00
dtrace2systemtap.pl
fdstream.c
fdstream.h
gnutls_1_0_compat.h
internal.h API: make declaration of _LAST enum values conditional 2012-01-20 16:05:51 -07:00
libvirt_daemon.syms
libvirt_dbus.syms
libvirt_driver_modules.syms
libvirt_internal.h
libvirt_linux.syms
libvirt_network.syms
libvirt_nwfilter.syms
libvirt_private.syms util: rename netlink.[ch] to virnetlink.[ch] 2012-02-03 15:27:40 -05:00
libvirt_public.syms block rebase: add new API virDomainBlockRebase 2012-02-01 15:21:56 -07:00
libvirt_qemu.syms
libvirt_sasl.syms
libvirt_vmx.syms
libvirt_xenxs.syms
libvirt-qemu.c
libvirt.c qemu: new GRACEFUL flag for virDomainDestroy w/ QEMU support 2012-02-03 14:21:17 -05:00
libvirt.conf
Makefile.am util: rename netlink.[ch] to virnetlink.[ch] 2012-02-03 15:27:40 -05:00
nodeinfo.c Fix build on s390(x) and other stange arches 2011-12-30 14:15:26 +08:00
nodeinfo.h
probes.d
qemu_protocol-structs
README
remote_protocol-structs block rebase: wire up remote protocol 2012-02-01 15:27:39 -07:00
virkeepaliveprotocol-structs build: Properly generate and check virkeepaliveprotocol-structs 2011-11-24 14:44:04 +01:00
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