libvirt/src
Laine Stump 12775d9491 macvtap: log an error if on failure to connect to netlink socket
A bug in libnl (see https://bugzilla.redhat.com/show_bug.cgi?id=677724
and https://bugzilla.redhat.com/show_bug.cgi?id=677725) makes it very
easy to create a failure to connect to the netlink socket when trying
to open a macvtap network device ("type='direct'" in domain interface
XML). When that error occurred (during a call to libnl's nl_connect()
from libvirt's nlComm(), there was no log message, leading virsh (for
example) to report "unknown error".

There were two other cases in nlComm where an error in a libnl
function might return with failure but no error reported. In all three
cases, this patch logs a message which will hopefully be more useful.

Note that more detailed information about the failure might be
available from libnl's nl_geterror() function, but it calls
strerror(), which is not threadsafe, so we can't use it.
2011-03-16 13:46:29 -04:00
..
conf storage: Fix a problem which will cause libvirtd crashed 2011-03-16 16:28:07 +08:00
cpu
esx libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
interface
lxc Make LXC container startup/shutdown/I/O more robust 2011-03-15 12:12:53 +00:00
network network driver: don't send default route to clients on isolated networks 2011-03-14 08:24:23 -04:00
node_device
nwfilter fixes for several memory leaks 2011-03-04 09:52:12 -07:00
opennebula libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
openvz libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
phyp libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
qemu qemu: support migration to fd 2011-03-15 16:35:43 -06:00
remote remote-protocol: implement new BlkioParameters API 2011-03-10 17:54:12 -07:00
secret Put <stdbool.h> into internal.h so it is available everywhere 2011-02-24 12:04:06 +00:00
security build: avoid compiler warning on cygwin 2011-03-08 21:56:18 -07:00
storage Fix performance problem of virStorageVolCreateXMLFrom() 2011-03-14 21:02:17 -06:00
test libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
uml libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
util macvtap: log an error if on failure to connect to netlink socket 2011-03-16 13:46:29 -04:00
vbox libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
vmware libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
vmx Put <stdbool.h> into internal.h so it is available everywhere 2011-02-24 12:04:06 +00:00
xen libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
xenapi libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
xenxs Add support for multiple serial ports into the Xen driver 2011-02-25 11:33:27 -07:00
.gitignore
datatypes.c maint: kill all remaining uses of old DEBUG macro 2011-02-21 08:46:52 -07:00
datatypes.h
driver.c
driver.h libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
fdstream.c
fdstream.h Put <stdbool.h> into internal.h so it is available everywhere 2011-02-24 12:04:06 +00:00
gnutls_1_0_compat.h
internal.h Put <stdbool.h> into internal.h so it is available everywhere 2011-02-24 12:04:06 +00:00
libvirt_bridge.syms
libvirt_daemon.syms
libvirt_driver_modules.syms
libvirt_internal.h
libvirt_linux.syms
libvirt_macvtap.syms
libvirt_nwfilter.syms
libvirt_private.syms Add virSetBlocking() to allow O_NONBLOCK to be toggle on or off 2011-03-15 15:26:35 +00:00
libvirt_public.syms libvirt: implements virDomain{Get,Set}BlkioParameters 2011-03-10 17:53:33 -07:00
libvirt_qemu.syms
libvirt_vmx.syms
libvirt-qemu.c
libvirt.c libvirt: fix a simple bug in virDomainSetMemoryFlags() 2011-03-15 08:14:41 -04:00
Makefile.am libvirtd: Remove indirect linking 2011-03-09 13:59:58 +01:00
nodeinfo.c Put <stdbool.h> into internal.h so it is available everywhere 2011-02-24 12:04:06 +00:00
nodeinfo.h
README
remote_protocol-structs remote-protocol: implement new BlkioParameters API 2011-03-10 17:54:12 -07:00

       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
 * lxc/          - Linux Native Containers
 * opennebula/   - Open Nebula using XMLRPC
 * 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, OpenNebula, 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