libvirt/src
Laine Stump 9911562a22 conf: single object containing list of IP addresses, list of routes
There are currently two places in the domain where this combination is
used, and there is about to be another. This patch puts them together
for brevity and uniformity.

As with the newly-renamed virNetDevIPAddr and virNetDevIPRoute
objects, the new virNetDevIPInfo object will need to be accessed by a
utility function that calls low level Netlink functions (so we don't
want it to be in the conf directory) and will be called from multiple
hypervisor drivers (so it can't be in any hypervisor directory); the
most appropriate place is thus once again the util directory.

The parse and format functions are in conf/domain_conf.c because only
the domain XML (i.e. *not* the network XML) has this exact combination
of IP addresses plus routes. Note that virDomainNetIPInfoFormat() will
end up being the only caller to virDomainNetRoutesFormat() and
virDomainNetIPsFormat(), so it will just subsume those functions in a
later patch, but we can't do that until they are no longer called.

(It would have been nice to include the interface name within the
virNetDevIPInfo object (with a slight name change), but that can't
be done cleanly, because in each case the interface name is provided
in a different place in the XML relative to the routes and IP
addresses, so putting it in this object would actually make the code
more confused rather than simpler).
2016-06-26 19:33:09 -04:00
..
access
admin admin: Introduce virAdmServerSetClientLimits 2016-05-19 12:31:53 +02:00
bhyve conf: Rename virDomainDefGetMemoryActual to virDomainDefGetMemoryTotal 2016-06-17 10:39:40 +02:00
conf conf: single object containing list of IP addresses, list of routes 2016-06-26 19:33:09 -04:00
cpu cpu_map.xml: add cmt/mbm feature to x86 2016-06-25 00:23:58 +02:00
esx global: consistently use IP rather than Ip in identifiers 2016-06-26 19:33:07 -04:00
hyperv Pass config file object through to driver open methods 2016-06-08 13:48:45 +01:00
interface interface: let netcf pre-filter for active vs. inactive 2015-10-02 11:16:11 -04:00
libxl secret: Move virStorageSecretType and rename 2016-06-23 12:30:27 -04:00
locking More usage of virGetLastErrorMessage 2016-05-19 15:17:03 -04:00
logging log: daemon: Add remote protocol handling for the log appending API 2016-06-07 18:10:29 +02:00
lxc util: move IP route & address object-related functions to virnetdevip.c 2016-06-26 19:33:09 -04:00
network util: move IP route & address object-related functions to virnetdevip.c 2016-06-26 19:33:09 -04:00
node_device node_device: Replace VIR_ERROR with standard vir*Error in state driver init 2016-06-08 10:19:32 -04:00
nwfilter global: consistently use IP rather than Ip in identifiers 2016-06-26 19:33:07 -04:00
openvz conf/openvz: eliminate incorrect/undocumented use of <source dev='blah'/> 2016-06-26 19:33:08 -04:00
phyp nodeinfo: remove sysfs_prefix from all methods 2016-06-09 18:00:18 +01:00
qemu conf/openvz: eliminate incorrect/undocumented use of <source dev='blah'/> 2016-06-26 19:33:08 -04:00
remote Promote storage pool refresh lifecycle event to top level event 2016-06-24 18:26:11 +01:00
rpc Rename virNetClient*AddrString 2016-06-23 22:31:20 +02:00
secret secret: Move virStorageSecretType and rename 2016-06-23 12:30:27 -04:00
security vnc: add support for listen type 'socket' 2016-06-09 14:42:48 +02:00
storage storage: Introduce virStoragePoolObjBuildTempFilePath 2016-06-24 13:42:38 -04:00
test Promote storage pool refresh lifecycle event to top level event 2016-06-24 18:26:11 +01:00
uml conf: Rename virDomainDefGetMemoryActual to virDomainDefGetMemoryTotal 2016-06-17 10:39:40 +02:00
util conf: single object containing list of IP addresses, list of routes 2016-06-26 19:33:09 -04:00
vbox global: consistently use IP rather than Ip in identifiers 2016-06-26 19:33:07 -04:00
vmware conf: Rename virDomainDefGetMemoryActual to virDomainDefGetMemoryTotal 2016-06-17 10:39:40 +02:00
vmx conf: Rename virDomainDefGetMemoryActual to virDomainDefGetMemoryTotal 2016-06-17 10:39:40 +02:00
vz vz: always pass graphics address to sdk 2016-06-25 22:56:04 +03:00
xen Replace some uses STREQLEN with STRPREFIX 2016-06-24 16:30:55 +02:00
xenapi conf: Rename virDomainDefGetMemoryActual to virDomainDefGetMemoryTotal 2016-06-17 10:39:40 +02:00
xenconfig global: consistently use IP rather than Ip in identifiers 2016-06-26 19:33:07 -04:00
admin_protocol-structs admin: Introduce virAdmServerSetClientLimits 2016-05-19 12:31:53 +02:00
check-aclperms.pl
check-aclrules.pl
check-driverimpls.pl
check-drivername.pl
check-symfile.pl
check-symsorting.pl
datatypes.c admin: Introduce virAdmClient client-side object 2016-05-02 22:26:17 +02:00
datatypes.h Introduce storage lifecycle event APIs 2016-06-16 12:22:11 -04:00
driver-hypervisor.h lib: Add API to set individual vcpu usage in the guest via guest agent 2016-06-22 09:25:47 +02:00
driver-interface.h
driver-network.h
driver-nodedev.h
driver-nwfilter.h
driver-secret.h
driver-state.h
driver-storage.h Introduce storage lifecycle event APIs 2016-06-16 12:22:11 -04:00
driver-stream.h
driver.c driver: log missing modules as INFO, not WARN 2016-03-17 16:50:05 -04:00
driver.h
dtrace2systemtap.pl
fdstream.c fdstream: don't raise error on SIGPIPE if abort requested 2016-05-02 10:13:05 -04:00
fdstream.h
internal.h build: add GCC 6.0 -Wlogical-op workaround 2016-04-11 12:09:14 +02:00
libvirt_admin_private.syms admin: Introduce virAdmServerSetClientLimits 2016-05-19 12:31:53 +02:00
libvirt_admin_public.syms admin: enable both admin API functionality and tarball distribution 2016-06-26 00:21:06 +02:00
libvirt_atomic.syms
libvirt_driver_modules.syms
libvirt_esx.syms
libvirt_gnutls.syms
libvirt_internal.h daemon: add connection close rpc 2016-03-01 14:18:16 +00:00
libvirt_libssh2.syms
libvirt_linux.syms nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
libvirt_lxc.syms Bump release to 2.0.0 and document release schedule & versioning 2016-06-14 10:59:07 +02:00
libvirt_openvz.syms
libvirt_private.syms conf: single object containing list of IP addresses, list of routes 2016-06-26 19:33:09 -04:00
libvirt_probes.d
libvirt_public.syms lib: Add API to set individual vcpu usage in the guest via guest agent 2016-06-22 09:25:47 +02:00
libvirt_qemu_probes.d
libvirt_qemu.syms
libvirt_remote.syms Rename virNetClient*AddrString 2016-06-23 22:31:20 +02:00
libvirt_sasl.syms virneserverclient: Introduce virNetServerClientHasSASLSession 2016-05-03 15:52:50 +02:00
libvirt_vmware.syms
libvirt_vmx.syms
libvirt_xenconfig.syms xenconfig: support vif bandwidth in sexpr parser and formatter 2016-01-08 18:56:00 -07:00
libvirt_xenxlconfig.syms
libvirt-admin.c admin: Introduce virAdmServerSetClientLimits 2016-05-19 12:31:53 +02:00
libvirt-admin.conf admin: Introduce libvirt-admin.conf 2015-11-30 09:36:19 +01:00
libvirt-domain-snapshot.c
libvirt-domain.c Don't allow raneming domains to empty strings 2016-06-24 11:14:51 +02:00
libvirt-host.c Document to not rely on virConnectGetMaxVcpus API 2016-06-24 19:20:14 +02:00
libvirt-interface.c
libvirt-lxc.c libvirt-lxc: add virDomainLxcEnterCGroup API 2016-06-10 11:02:53 +01:00
libvirt-lxc.pc.in
libvirt-network.c
libvirt-nodedev.c
libvirt-nwfilter.c
libvirt-qemu.c
libvirt-qemu.pc.in
libvirt-secret.c libvirt-secret: Fix typo 2015-10-15 11:31:27 +02:00
libvirt-storage.c Introduce storage lifecycle event APIs 2016-06-16 12:22:11 -04:00
libvirt-stream.c virStream{Recv,Send}All: Increase client buffer 2016-05-02 07:56:38 +02:00
libvirt.c Pass config file object through to driver open methods 2016-06-08 13:48:45 +01:00
libvirt.conf admin: Distribute libvirt-admin.conf 2015-12-01 11:44:48 +01:00
libvirt.pc.in
lock_protocol-structs Fix make check with gcc version 5 2016-01-18 15:19:21 +01:00
lxc_monitor_protocol-structs
lxc_protocol-structs
Makefile.am util: new files virnetdevip.[ch] for IP-related netdev functions 2016-06-26 19:33:09 -04:00
nodeinfo.c Remove separator argument from virBitmapParse 2016-06-20 12:09:52 +02:00
nodeinfo.h nodeinfo: move host memory APIs out into virhostmem file 2016-06-09 18:43:18 +01:00
qemu_protocol-structs
README
remote_protocol-structs Promote storage pool refresh lifecycle event to top level event 2016-06-24 18:26:11 +01: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