libvirt/src
Daniel P. Berrangé 75f4813c7d Fix build with GCC 8 new switch fallthrough warnings
GCC 8 became more fussy about detecting switch
fallthroughs. First it doesn't like it if you have
a fallthrough attribute that is not before a case
statement. e.g.

   FOO:
   BAR:
   WIZZ:
      ATTRIBUTE_FALLTHROUGH;

Is unacceptable as there's no final case statement,
so while FOO & BAR are falling through, WIZZ is
not falling through. IOW, GCC wants us to write

  FOO:
  BAR:
    ATTRIBUTE_FALLTHROUGH;
  WIZZ:

Second, it will report risk of fallthrough even if you
have a case statement for every single enum value, but
only if the switch is nested inside another switch and
the outer case statement has no final break. This is
is arguably valid because despite the fact that we have
cast from "int" to the enum typedef, nothing guarantees
that the variable we're switching on only contains values
that have corresponding switch labels. e.g.

   int domstate = 87539319;
   switch ((virDomainState)domstate) {
      ...
   }

will not match enum value, but also not raise any kind
of compiler warning. So it is right to complain about
risk of fallthrough if no default: is present.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2018-02-20 15:30:59 +00:00
..
access Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
admin admin: add support for post-exec restart callbacks 2018-01-31 15:12:44 +00:00
bhyve bhyve: Fix build 2018-02-19 14:22:07 +01:00
conf conf: add enum constants for default controller models 2018-02-20 14:58:39 +00:00
cpu cpu: Add support for al57 Intel features 2018-01-25 15:30:32 +01:00
esx Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
hyperv hyperv: Map Limit to max_memory and VirtualQuantity to cur_balloon 2017-10-16 10:29:32 -04:00
interface interface: allow opening with interface:///system and interface:///session URIs 2018-01-31 17:45:51 +00:00
keycodemapdb@267157b96c Update to latest keycodemapdb content 2017-12-12 16:34:12 +00:00
libxl conf: add enum constants for default controller models 2018-02-20 14:58:39 +00:00
locking Check for tabs in augeas files 2018-01-31 15:19:26 +00:00
logging logd: add support for admin protocol in virtlogd 2018-01-31 15:17:47 +00:00
lxc conf: introduce callback registration for domain net device allocation 2018-02-09 11:05:10 +00:00
network conf: reimplement virDomainNetResolveActualType in terms of public API 2018-02-19 11:11:46 +00:00
node_device nodedev: allow opening with nodedev:///system and nodedev:///session URIs 2018-01-31 17:46:09 +00:00
nwfilter nwfilter: allow opening with nwfilter:///system URI 2018-01-31 17:45:16 +00:00
openvz Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
phyp Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemu Fix build with GCC 8 new switch fallthrough warnings 2018-02-20 15:30:59 +00:00
remote storage: export virStoragePoolLookupByTargetPath as a public API 2018-02-09 11:05:10 +00:00
rpc netserver: Remove ServiceToggle during ServerDispose 2018-02-02 18:01:00 -05:00
secret secret: allow opening with secret:///system and secret:///session URIs 2018-01-31 17:46:26 +00:00
security storage: move storage file backend framework into util directory 2018-02-09 11:05:10 +00:00
storage storage: export virStoragePoolLookupByTargetPath as a public API 2018-02-09 11:05:10 +00:00
test test: Implementing testDomainRename(). 2018-01-29 09:50:47 +01:00
uml conf: Fix type for @liveStatus in virDomainObjListLoadAllConfigs 2017-11-09 10:37:58 +01:00
util storage_conf: Make virStorageAuthDefFormat return void 2018-02-20 13:06:22 +01:00
vbox conf: add enum constants for default controller models 2018-02-20 14:58:39 +00:00
vmware conf: Pass config.priv to xmlopt->privateData.alloc 2017-07-25 17:02:27 +02:00
vmx conf: add enum constants for default controller models 2018-02-20 14:58:39 +00:00
vz cfg: forbid includes of headers in network and storage drivers again 2018-02-09 11:05:10 +00:00
xen Fix minor typos 2017-12-12 09:13:43 +01:00
xenapi conf: merge virDomainLifecycleCrashAction with virDomainLifecycleAction 2017-10-19 11:52:09 +02:00
xenconfig xenconfig: fix issue found by coverity in multiple IP support 2017-12-13 15:31:55 -05:00
admin_protocol-structs
check-aclperms.pl perl: Don't hardcode interpreter path 2017-09-19 16:04:53 +02:00
check-aclrules.pl perl: Don't hardcode interpreter path 2017-09-19 16:04:53 +02:00
check-driverimpls.pl perl: Don't hardcode interpreter path 2017-09-19 16:04:53 +02:00
check-drivername.pl perl: Don't hardcode interpreter path 2017-09-19 16:04:53 +02:00
check-symfile.pl perl: Don't hardcode interpreter path 2017-09-19 16:04:53 +02:00
check-symsorting.pl perl: Don't hardcode interpreter path 2017-09-19 16:04:53 +02:00
datatypes.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
datatypes.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
driver-hypervisor.h lib: introduce virDomainSetLifecycleAction() API 2017-10-19 11:52:26 +02:00
driver-interface.h
driver-network.h
driver-nodedev.h
driver-nwfilter.h
driver-secret.h Introduce secret lifecycle event APIs 2017-01-09 15:53:48 +00:00
driver-state.h
driver-storage.h storage: export virStoragePoolLookupByTargetPath as a public API 2018-02-09 11:05:10 +00:00
driver-stream.h Introduce virStreamInData 2017-05-18 07:42:13 +02:00
driver.c driver: allow override of connection for secondary drivers 2018-02-19 11:11:46 +00:00
driver.h driver: allow override of connection for secondary drivers 2018-02-19 11:11:46 +00:00
dtrace2systemtap.pl perl: Don't hardcode interpreter path 2017-09-19 16:04:53 +02:00
internal.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
libvirt_admin_private.syms
libvirt_admin_public.syms
libvirt_atomic.syms
libvirt_driver_modules.syms driver: Split/refactor driver module loading 2017-02-21 08:48:51 +01:00
libvirt_esx.syms
libvirt_gnutls.syms
libvirt_internal.h Introduce virStreamInData 2017-05-18 07:42:13 +02:00
libvirt_libssh2.syms
libvirt_libssh.syms
libvirt_linux.syms Expose Linux symbols only on Linux 2017-03-27 17:36:13 +02:00
libvirt_lxc.syms
libvirt_openvz.syms
libvirt_private.syms driver: allow override of connection for secondary drivers 2018-02-19 11:11:46 +00:00
libvirt_probes.d
libvirt_public.syms storage: export virStoragePoolLookupByTargetPath as a public API 2018-02-09 11:05:10 +00:00
libvirt_qemu_probes.d
libvirt_qemu.syms
libvirt_remote.syms rpc: export xdr_virNetMessageError for virnetmessagetest on Win32 2018-02-09 14:29:33 +00:00
libvirt_sasl.syms
libvirt_vmware.syms
libvirt_vmx.syms
libvirt_xenconfig.syms
libvirt-admin.c lockd: add support for admin protocol in virtlockd 2018-01-31 15:18:36 +00:00
libvirt-admin.conf
libvirt-domain-snapshot.c Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01:00
libvirt-domain.c qemu: implement virDomainSetLifecycleAction() API 2017-10-19 11:52:38 +02:00
libvirt-host.c Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01:00
libvirt-interface.c Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01:00
libvirt-lxc.c Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01:00
libvirt-lxc.pc.in
libvirt-network.c Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01:00
libvirt-nodedev.c Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01:00
libvirt-nwfilter.c Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01:00
libvirt-qemu.c Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01:00
libvirt-qemu.pc.in
libvirt-secret.c Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01:00
libvirt-storage.c storage: export virStoragePoolLookupByTargetPath as a public API 2018-02-09 11:05:10 +00:00
libvirt-stream.c Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01:00
libvirt.c Use https:// links for most sites 2017-10-16 10:22:34 +01:00
libvirt.conf
libvirt.pc.in
lock_protocol-structs
lxc_monitor_protocol-structs
lxc_protocol-structs
Makefile.am lockd: Install the admin sockets 2018-02-09 06:34:20 -05:00
qemu_protocol-structs
README
remote_protocol-structs storage: export virStoragePoolLookupByTargetPath as a public API 2018-02-09 11:05:10 +00:00
virkeepaliveprotocol-structs
virnetprotocol-structs Introduce VIR_NET_STREAM_HOLE message type 2017-05-18 07:42:13 +02: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:

 * 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