libvirt/src
Eric Blake 6a713b310a xen: reject unknown flags
Also fix a logic bug in xenXMDomain{Attach,Detach}DeviceFlags,
where (flags & VIR_DOMAIN_DEVICE_MODIFY_CURRENT) is always false.

* src/xen/xen_driver.c (xenUnifiedDomainXMLFromNative)
(xenUnifiedDomainXMLToNative, xenUnifiedDomainBlockPeek): Reject
unknown flags.
* src/xen/xen_hypervisor.c (xenHypervisorOpen)
(xenHypervisorGetDomainState): Likewise.
* src/xen/xen_inotify.c (xenInotifyOpen): Likewise.
* src/xen/xs_internal.c (xenStoreOpen, xenStoreDomainGetState)
(xenStoreDomainReboot): Likewise.
* src/xen/xend_internal.c (xenDaemonOpen, xenDaemonDomainReboot)
(xenDaemonDomainCoreDump, xenDaemonDomainGetState)
(xenDaemonDomainMigratePrepare, xenDaemonDomainSetVcpusFlags,
xenDaemonDomainGetVcpusFlags, xenDaemonAttachDeviceFlags,
xenDaemonDetachDeviceFlags): Likewise.
(xenDaemonDomainGetXMLDesc): Prefer unsigned flags.
* src/xen/xend_internal.h (xenDaemonDomainGetXMLDesc): Likewise.
* src/xen/xm_internal.h (xenXMDomainGetXMLDesc): Likewise.
* src/xen/xm_internal.c (xenXMDomainGetXMLDesc): Likewise.
(xenXMOpen, xenXMDomainGetState, xenXMDomainSetVcpusFlags)
(xenXMDomainGetVcpusFlags): Reject unknown flags.
(xenXMDomainAttachDeviceFlags, xenXMDomainDetachDeviceFlags):
Likewise, and avoid always-false conditional.
* src/xen/xen_driver.h (XEN_MIGRATION_FLAGS): New define.
2011-07-15 16:34:44 -06:00
..
conf flags: fix domain_conf migration regression 2011-07-15 13:31:46 -06:00
cpu
esx esx: reject unknown flags 2011-07-15 16:30:22 -06:00
interface util: reject unknown flags, and prefer unsigned flags 2011-07-13 09:04:54 -06:00
libxl flags: use common dumpxml flags check 2011-07-15 12:22:20 -06:00
locking maint: fix typos 2011-07-15 12:15:04 -06:00
lxc flags: use common dumpxml flags check 2011-07-15 12:22:20 -06:00
network util: reject unknown flags, and prefer unsigned flags 2011-07-13 09:04:54 -06:00
node_device node_device: reject unknown flags 2011-07-13 09:04:54 -06:00
nwfilter util: reject unknown flags, and prefer unsigned flags 2011-07-13 09:04:54 -06:00
openvz flags: use common dumpxml flags check 2011-07-15 12:22:20 -06:00
phyp flags: use common dumpxml flags check 2011-07-15 12:22:20 -06:00
qemu flags: fix qemu migration regression 2011-07-15 12:34:00 -06:00
remote remote: prefer unsigned flags 2011-07-14 07:34:38 -06:00
rpc Fix error message for missing TLS write function 2011-07-15 16:26:11 +01:00
secret util: reject unknown flags, and prefer unsigned flags 2011-07-13 09:04:54 -06:00
security update apparmor security driver for new udev paths 2011-07-14 11:41:48 -06:00
storage Fix error code for storage operations 2011-07-15 08:35:25 -06:00
test flags: use common dumpxml flags check 2011-07-15 12:22:20 -06:00
uml flags: use common dumpxml flags check 2011-07-15 12:22:20 -06:00
util command: introduce virPidWait, virPidAbort 2011-07-14 11:56:30 -06:00
vbox flags: use common dumpxml flags check 2011-07-15 12:22:20 -06:00
vmware flags: use common dumpxml flags check 2011-07-15 12:22:20 -06:00
vmx
xen xen: reject unknown flags 2011-07-15 16:34:44 -06:00
xenapi flags: use common dumpxml flags check 2011-07-15 12:22:20 -06:00
xenxs build: avoid ATTRIBUTE_UNUSED in headers 2011-07-14 07:51:30 -06:00
.gitignore
datatypes.c
datatypes.h conf: prefer unsigned flags 2011-07-13 17:05:10 -06:00
driver.c
driver.h
fdstream.c fdstream: avoid child process leak on error 2011-07-14 12:00:13 -06:00
fdstream.h
gnutls_1_0_compat.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
internal.h
libvirt_bridge.syms
libvirt_daemon.syms
libvirt_driver_modules.syms
libvirt_internal.h
libvirt_linux.syms
libvirt_macvtap.syms
libvirt_network.syms
libvirt_nwfilter.syms
libvirt_private.syms command: introduce virPidWait, virPidAbort 2011-07-14 11:56:30 -06:00
libvirt_public.syms
libvirt_qemu.syms
libvirt_vmx.syms
libvirt_xenxs.syms
libvirt-qemu.c maint: print flags in hex during debug 2011-07-13 07:47:45 -06:00
libvirt.c setvcpus: extend virDomainSetVcpusFlags API to support current flag 2011-07-15 08:19:24 -06:00
Makefile.am build: check for virnetprotocol on-the-wire stability 2011-07-14 09:25:41 -06:00
nodeinfo.c
nodeinfo.h build: avoid ATTRIBUTE_UNUSED in headers 2011-07-14 07:51:30 -06:00
qemu_protocol-structs libvirt-qemu: use unsigned flags 2011-07-13 08:48:09 -06:00
README
remote_protocol-structs
virnetprotocol-structs build: check for virnetprotocol on-the-wire stability 2011-07-14 09:25:41 -06: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
 * 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, 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