libvirt/src
Shradha Shah 1610b71a96 qemu: support netdevs from <forward mode='hostdev'> networks
For network devices allocated from a network with <forward
mode='hostdev'>, there is a need to add the newly minted hostdev to
the hostdevs array.

In this case we also need to call qemuPrepareHostDevices just for this
one device, as the standard call to initialize all the hostdevs that
were defined directly in the domain's configuration has already been
made by the time we allocate a device from a libvirt network, and thus
have something that needs initializing.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
2012-08-17 15:43:26 -04:00
..
conf conf: add function virDevicePCIAddressEqual 2012-08-17 15:43:26 -04:00
cpu Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
esx conf: parser/formatter/rng for <forward mode='hostdev'> 2012-08-17 15:43:26 -04:00
hyperv maint: avoid regression on copyright listings 2012-07-27 07:42:34 -06:00
interface Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
libxl Destroy virdomainlist.[ch] 2012-08-14 17:27:49 +08:00
locking Add further debugging lines to domain lock manager 2012-08-15 10:58:45 +01:00
lxc network: add support for setting VLANs on Open vSwitch ports 2012-08-17 11:12:29 -04:00
network network: support <forward mode='hostdev'> in network driver 2012-08-17 15:43:26 -04:00
node_device Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
nwfilter nwfilter: remove target table before renaming it 2012-08-09 16:17:13 -04:00
openvz openvz: unlock virDomainObj objects in openvzOpen 2012-08-14 09:57:42 -06:00
parallels parallels: cleanup parallelsOpen and fix error message 2012-08-15 16:39:36 +08:00
phyp Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
qemu qemu: support netdevs from <forward mode='hostdev'> networks 2012-08-17 15:43:26 -04:00
remote Allow sync IO and keepalives to be skipped in RPC client setup 2012-08-15 10:58:30 +01:00
rpc Refactor RPC client private data setup 2012-08-15 10:59:10 +01:00
secret Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
security Pull code which finds a free MCS label out into its own method 2012-08-14 15:31:26 +01:00
storage build: fix PROBE() usage of intptr_t 2012-08-09 15:40:42 -06:00
test Destroy virdomainlist.[ch] 2012-08-14 17:27:49 +08:00
uml network: add support for setting VLANs on Open vSwitch ports 2012-08-17 11:12:29 -04:00
util network: return netdev name or pci addr of the VF in actualDevice 2012-08-17 15:43:26 -04:00
vbox Destroy virdomainlist.[ch] 2012-08-14 17:27:49 +08:00
vmware Destroy virdomainlist.[ch] 2012-08-14 17:27:49 +08:00
vmx Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
xen conf: move DevicePCIAddress functions to separate file 2012-08-17 15:43:25 -04: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 Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01: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 parallels: add driver skeleton 2012-08-01 11:44:26 +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: fix PROBE() usage of intptr_t 2012-08-09 15:40:42 -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 Export conditional state driver symbols only when they are defined 2010-03-23 02:05:18 +01:00
libvirt_driver_modules.syms Override default driver dir when running from GIT 2012-05-24 13:18:01 +01:00
libvirt_esx.syms Remove libvirt_test.la library 2012-05-24 13:18:00 +01:00
libvirt_internal.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08: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 conf: add function virDevicePCIAddressEqual 2012-08-17 15:43:26 -04:00
libvirt_probes.d Turn virNetClient* into virObject instances 2012-08-07 11:47:55 +01:00
libvirt_public.syms build: commit to 0.10.0 release naming 2012-08-02 18:55:43 +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 Define a QEMU specific API to attach to a running QEMU process 2011-07-12 15:39:03 +01: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 Fix build with --with-driver-modules enabled 2011-05-27 09:51:28 +02:00
libvirt-qemu.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
libvirt.c Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
libvirt.conf Allow overriding default URI in config file 2012-03-15 11:20:17 +00:00
Makefile.am conf: move DevicePCIAddress functions to separate file 2012-08-17 15:43:25 -04:00
nodeinfo.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
nodeinfo.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
qemu_protocol-structs build: use correct type for pid and similar types 2012-03-02 06:57:43 -07:00
README hyperv: Add basic documentation 2011-08-26 17:52:55 +02:00
remote_protocol-structs remote: Provide RPC call for domainGetHostname 2012-07-20 21:54:35 +02:00
virkeepaliveprotocol-structs build: Properly generate and check virkeepaliveprotocol-structs 2011-11-24 14:44:04 +01:00
virnetprotocol-structs Extend RPC protocol to allow FD passing 2011-10-28 10:27:15 +01: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
 * 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