libvirt/src
Michal Privoznik e255cf02b2 qemuBuildMemoryBackendStr: Handle one more corner case
https://bugzilla.redhat.com/show_bug.cgi?id=1458638

This code is so complicated because we allow enabling the same
bits at many places. Just like in this case: huge pages can be
enabled by global <hugepages/> element under <memoryBacking> or
on per <memory/> basis. To complicate things a bit more, users
are allowed to omit the page size which case the default page
size is used. And this is what is causing this bug. If no page
size is specified, @pagesize is keeping value of zero throughout
whole function. Therefore we need yet another boolean to hold
[use, don't use] information as we can't sue @pagesize for that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2017-08-10 17:26:30 +02:00
..
access conf: simplify internal virSecretDef handling of usage 2017-01-09 15:53:49 +00:00
admin admin: Introduce virAdmConnectSetLoggingFilters 2016-12-15 10:36:23 +01:00
bhyve bhyve: Add support for VNC autoport 2017-08-06 09:24:26 +04:00
conf virDomainNetDefClear: Free @coalesce 2017-08-10 09:33:11 +02:00
cpu cpu: define sub-leaf 0 for leaf 7 in cpu_map.xml 2017-08-04 16:45:11 +02:00
esx conf: Pass xmlopt to virDomainSnapshotDefFormat 2017-06-07 13:36:01 +02:00
hyperv hyperv: Silence clang alignment warnings in serialization code 2017-08-07 23:14:01 +02:00
interface util: rename/move VIR_NET_GENERATED_PREFIX to be consistent 2017-04-28 09:43:52 -04:00
keycodemapdb@7bf5710b22 Update keycodemapdb submodule for python2 compat fixes 2017-04-26 11:53:40 +01:00
libxl introduce virConfReadString 2017-08-08 12:19:17 +02:00
locking man: Fix documentation errors about the paths of the config files 2017-06-28 11:07:08 +02:00
logging man: Fix documentation errors about the paths of the config files 2017-06-28 11:07:08 +02:00
lxc introduce virConfReadString 2017-08-08 12:19:17 +02:00
network network: Perform some formatting cleanup in bridge_driver 2017-07-15 07:39:16 -04:00
node_device nodedev: Fix double unlock of the driver on udevEnumerateDevices failure 2017-07-28 10:52:28 +02:00
nwfilter nwfilter: Introduce virNWFilterObjListFindInstantiateFilter 2017-07-15 23:00:30 -04:00
openvz conf: Add save cookie callbacks to xmlopt 2017-06-07 13:36:01 +02:00
phyp phyp: Fix memory leak in phypUUIDTable_Push 2017-07-19 16:49:51 +02:00
qemu qemuBuildMemoryBackendStr: Handle one more corner case 2017-08-10 17:26:30 +02:00
remote remote: increase max storage pools, nwfilters & snapshots to 16384 2017-08-04 16:24:03 +01:00
rpc virNetDaemonCallInhibit: Call virNetDaemonGotInhibitReply properly 2017-08-01 11:37:51 +02:00
secret secret: Handle object list removal and deletion properly 2017-07-25 09:15:30 -04:00
security security: apparmor: load the storage driver dynamically 2017-07-27 12:00:35 +02:00
storage make: Drop building without driver modules 2017-07-27 12:00:35 +02:00
test test: Use consistent variable names for network test driver APIs 2017-07-26 10:38:01 -04:00
uml conf: Pass config.priv to xmlopt->privateData.alloc 2017-07-25 17:02:27 +02:00
util introduce virConfReadString 2017-08-08 12:19:17 +02:00
vbox make: Drop building without driver modules 2017-07-27 12:00:35 +02:00
vmware conf: Pass config.priv to xmlopt->privateData.alloc 2017-07-25 17:02:27 +02:00
vmx introduce virConfReadString 2017-08-08 12:19:17 +02:00
vz conf: Pass config.priv to xmlopt->privateData.alloc 2017-07-25 17:02:27 +02:00
xen introduce virConfReadString 2017-08-08 12:19:17 +02:00
xenapi conf: Add save cookie callbacks to xmlopt 2017-06-07 13:36:01 +02:00
xenconfig virStorageNetHostDef: Turn @port into integer 2017-07-24 10:55:44 +02:00
admin_protocol-structs admin: Introduce virAdmConnectSetLoggingFilters 2016-12-15 10:36:23 +01:00
check-aclperms.pl
check-aclrules.pl
check-driverimpls.pl
check-drivername.pl
check-symfile.pl Revert "Prevent more compiler optimization of mockable functions" 2017-07-13 13:07:06 +01:00
check-symsorting.pl
datatypes.c datatypes: removing unnecessary return statement. 2017-05-18 20:15:45 -04:00
datatypes.h virConnect: Update comment for @privateData 2017-08-02 10:03:23 +02:00
driver-hypervisor.h lib: Add API for setting the threshold size for VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD 2017-03-27 10:09:49 +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: Introduce virStorageVolInfoFlags 2016-12-20 13:52:39 -05:00
driver-stream.h Introduce virStreamInData 2017-05-18 07:42:13 +02:00
driver.c driver: conditionalize use of dlopen functions & use mingw-dlfcn 2017-08-02 13:51:28 +01:00
driver.h daemon: Refactor connection driver module loading 2017-02-21 09:24:33 +01:00
dtrace2systemtap.pl
internal.h Revert "Prevent more compiler optimization of mockable functions" 2017-07-13 13:07:06 +01:00
libvirt_admin_private.syms admin: Introduce virAdmConnectSetLoggingFilters 2016-12-15 10:36:23 +01:00
libvirt_admin_public.syms admin: Introduce virAdmConnectSetLoggingFilters 2016-12-15 10:36:23 +01:00
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 libssh_transport: add new libssh-based transport 2016-11-15 15:50:51 +01:00
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 introduce virConfReadString 2017-08-08 12:19:17 +02:00
libvirt_probes.d
libvirt_public.syms Introduce virStreamSparseSendAll 2017-05-18 07:42:13 +02:00
libvirt_qemu_probes.d
libvirt_qemu.syms
libvirt_remote.syms Introduce virNetClientStreamRecvHole 2017-05-18 07:42:13 +02:00
libvirt_sasl.syms
libvirt_vmware.syms
libvirt_vmx.syms
libvirt_xenconfig.syms
libvirt_xenxlconfig.syms
libvirt-admin.c admin: Introduce virAdmConnectSetLoggingFilters 2016-12-15 10:36:23 +01:00
libvirt-admin.conf
libvirt-domain-snapshot.c Remove bogus warning about vir$OBJECTGetConnect functions 2017-08-07 13:39:28 +01:00
libvirt-domain.c Remove bogus warning about vir$OBJECTGetConnect functions 2017-08-07 13:39:28 +01:00
libvirt-host.c
libvirt-interface.c Remove bogus warning about vir$OBJECTGetConnect functions 2017-08-07 13:39:28 +01:00
libvirt-lxc.c
libvirt-lxc.pc.in
libvirt-network.c Remove bogus warning about vir$OBJECTGetConnect functions 2017-08-07 13:39:28 +01:00
libvirt-nodedev.c virsh: nodedev: ability to filter CCW capabilities 2017-05-26 10:44:05 -04:00
libvirt-nwfilter.c
libvirt-qemu.c
libvirt-qemu.pc.in
libvirt-secret.c Remove bogus warning about vir$OBJECTGetConnect functions 2017-08-07 13:39:28 +01:00
libvirt-storage.c Remove bogus warning about vir$OBJECTGetConnect functions 2017-08-07 13:39:28 +01:00
libvirt-stream.c virStream*All: Report error if a callback fails 2017-07-11 09:33:12 +02:00
libvirt.c
libvirt.conf
libvirt.pc.in
lock_protocol-structs
lxc_monitor_protocol-structs
lxc_protocol-structs
Makefile.am security: apparmor: load the storage driver dynamically 2017-07-27 12:00:35 +02:00
qemu_protocol-structs
README
remote_protocol-structs lib: Add API for setting the threshold size for VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD 2017-03-27 10:09:49 +02: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