1
libvirt library code README
2
===========================
4
The directory provides the bulk of the libvirt codebase. Everything
5
except for the libvirtd daemon and client tools. The build uses a
6
large number of libtool convenience libraries - one for each child
7
directory, and then links them together for the final libvirt.so,
8
although some bits get linked directly to libvirtd daemon instead.
10
The files directly in this directory are supporting the public API
11
entry points & data structures.
13
There are two core shared modules to be aware of:
15
* util/ - a collection of shared APIs that can be used by any
16
code. This directory is always in the include path
19
* conf/ - APIs for parsing / manipulating all the official XML
20
files used by the public API. This directory is only
21
in the include path for driver implementation modules
24
Then there are the hypervisor implementations:
26
* esx/ - VMware ESX and GSX support using vSphere API over SOAP
27
* lxc/ - Linux Native Containers
28
* opennebula/ - Open Nebula using XMLRPC
29
* openvz/ - OpenVZ containers using cli tools
30
* phyp/ - IBM Power Hypervisor using CLI tools over SSH
31
* qemu/ - QEMU / KVM using qemu CLI/monitor
32
* remote/ - Generic libvirt native RPC client
33
* test/ - A "mock" driver for testing
34
* uml/ - User Mode Linux
35
* vbox/ - Virtual Box using native API
36
* xen/ - Xen using hypercalls, XenD SEXPR & XenStore
39
Finally some secondary drivers that are shared for several HVs.
40
Currently these are used by LXC, OpenVZ, QEMU, UML and Xen drivers.
41
The ESX, OpenNebula, Power Hypervisor, Remote, Test & VirtualBox
42
drivers all implement the secondary drivers directly
44
* interface/ - Host network interface management
45
* network/ - Virtual NAT networking
46
* node_device/ - Host device enumeration
47
* secret/ - Secret management
48
* security/ - Mandatory access control drivers
49
* storage/ - Storage management drivers
52
Since both the hypervisor and secondary drivers can be built as
53
dlopen()able modules, it is *FORBIDDEN* to have build dependencies
54
between these directories. Drivers are only allowed to depend on
55
the public API, and the internal APIs in the util/ and conf/