libvirt/src
Guannan Ren 2d46f88d53 qemu: build USB redirection filter qemu command line
Input XML snip:
<redirdev bus='usb' type='spicevmc'>
   <address type='usb' bus='0' port='4'/>
 </redirdev>
<redirfilter>
  <usbdev class='0x08' vendor='0x1234' product='0xbeef' \
          version='2.00' allow='yes'/>
  <usbdev class='-1' vendor='-1' product='-1' version='-1' allow='no'/>
</redirfilter>

will be converted to:
-device usb-redir,chardev=charredir0,id=redir0,\
filter=0x08:0x1234:0xBEEF:0x2000:1|-1👎-1👎0,bus=usb.0,port=4
2012-09-13 17:22:32 +08:00
..
conf qemu: define and parse USB redirection filter XML 2012-09-13 17:22:27 +08:00
cpu Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
esx maint: fix missing spaces in message 2012-09-12 11:55:29 -06:00
hyperv hyperv: Add implementation for virConnectListAllDomains() 2012-09-06 10:04:30 +02:00
interface list: Implement listAllInterfaces 2012-09-12 15:37:09 +08:00
libxl vcpupin: Fix returning of arrays from virDomainVcpuPinAdd 2012-08-30 16:45:38 +02:00
locking sanlock: Provide better error if lockspace directory is missing 2012-08-21 18:09:09 +02:00
lxc Don't assume use of /sys/fs/cgroup 2012-09-07 13:30:20 +01:00
network list: Implement listAllNetworks for network driver 2012-09-11 17:00:46 +08:00
node_device Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
nwfilter nwfilter: drop use of awk 2012-09-06 16:33:06 -06:00
openvz openvz: check the exitstatus of vzlist 2012-08-24 03:07:00 -04:00
parallels parallels: fix parallelsDomainDefineXML for domains with VNC and autoport 2012-09-12 17:52:49 +08:00
phyp Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
qemu qemu: build USB redirection filter qemu command line 2012-09-13 17:22:32 +08:00
remote list: Implemente RPC calls for virConnectListAllInterfaces 2012-09-12 15:36:56 +08:00
rpc maint: fix missing spaces in message 2012-09-12 11:55:29 -06:00
secret Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
security security: Re-apply commit ce53382ba2 2012-08-30 16:45:38 +02:00
storage list: Implement virStoragePoolListAllVolumes for storage driver 2012-09-10 10:38:57 +08:00
test list: Implement listAllNetworks for test driver 2012-09-11 17:01:25 +08:00
uml network: get vlan info for Open vSwitch interfaces from proper source 2012-08-30 18:05:18 +08:00
util Don't assume use of /sys/fs/cgroup 2012-09-07 13:30:20 +01:00
vbox maint: fix missing spaces in message 2012-09-12 11:55:29 -06:00
vmware maint: fix missing spaces in message 2012-09-12 11:55:29 -06:00
vmx Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
xen vcpupin: Fix returning of arrays from virDomainVcpuPinAdd 2012-08-30 16:45:38 +02:00
xenapi build: fix PROBE() usage of intptr_t 2012-08-09 15:40:42 -06:00
xenxs build: fix PROBE() usage of intptr_t 2012-08-09 15:40:42 -06:00
check-symfile.pl build: avoid tabs that failed syntax-check 2012-09-06 09:43:46 -06:00
datatypes.c Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
datatypes.h Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
driver.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
driver.h list: Define new API virConnectListAllInterfaces 2012-09-12 15:19:46 +08:00
dtrace2systemtap.pl build: fix binary location in stap files --with-driver-modules 2012-08-10 23:11:26 -04:00
fdstream.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
fdstream.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
gnutls_1_0_compat.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
internal.h build: improved handling of <execinfo.h>, BSD <net/if.h> 2012-09-06 10:08:47 -06:00
libvirt_atomic.syms Rewrite virAtomic APIs using GLib's atomic ops code 2012-08-02 11:50:59 +01:00
libvirt_daemon.syms
libvirt_driver_modules.syms
libvirt_esx.syms
libvirt_internal.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
libvirt_libssh2.syms libssh2_transport: add main libssh2 transport implementation 2012-08-21 14:47:09 +02:00
libvirt_linux.syms build: Don't export xenLinuxDomainBlockStats symbol 2012-07-31 11:28:32 +02:00
libvirt_openvz.syms openvz: Add openvzVEGetStringParam 2012-07-20 21:54:35 +02:00
libvirt_private.syms list: Add helpers to list network objects 2012-09-11 16:59:51 +08:00
libvirt_probes.d Turn virNetClient* into virObject instances 2012-08-07 11:47:55 +01:00
libvirt_public.syms list: Define new API virConnectListAllInterfaces 2012-09-12 15:19:46 +08:00
libvirt_qemu_probes.d build: fix binary location in stap files --with-driver-modules 2012-08-10 23:11:26 -04:00
libvirt_qemu.syms qemu-agent: available in 0.10.0 2012-08-23 13:05:52 -06:00
libvirt_sasl.syms Move some SASL symbols into libvirt_sasl.syms 2012-08-15 21:41:42 +01:00
libvirt_vmx.syms esx: Move VMX handling code out of the driver directory 2010-12-21 22:40:17 +01:00
libvirt_xenxs.syms
libvirt-qemu.c agent: add virDrvDomainQemuAgentCommand prototype for drivers. 2012-08-23 18:13:15 +08:00
libvirt.c list: Define new API virConnectListAllInterfaces 2012-09-12 15:19:46 +08:00
libvirt.conf Allow overriding default URI in config file 2012-03-15 11:20:17 +00:00
Makefile.am build: avoid check-symfile on non-Linux 2012-09-05 13:10:18 -06:00
nodeinfo.c build: work with glibc that lacks CPU_COUNT 2012-08-21 12:07:03 -06:00
nodeinfo.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
qemu_protocol-structs agent: add remote driver support 2012-08-23 19:05:50 +08:00
README
remote_protocol-structs list: Implemente RPC calls for virConnectListAllInterfaces 2012-09-12 15:36:56 +08: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:

 * 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