libvirt/src
Jim Fehlig 299e97c4e8 virconf: properly set the end of content
There was a recent report of the xen-xl converter not handling
config files missing an ending newline

https://www.redhat.com/archives/libvir-list/2017-October/msg01353.html

Commit 3cc2a9e0 fixed a similar problem when parsing content of a
file but missed parsing in-memory content. But AFAICT, the better
fix is to properly set the end of the content when initializing the
virConfParserCtxt in virConfParse().

This commit reverts the part of 3cc2a9e0 that appends a newline to
files missing it, and fixes setting the end of content when
initializing virConfParserCtxt. A test is also added to check
parsing in-memory content missing an ending newline.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
2017-11-09 08:04:26 -07:00
..
access Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
admin
bhyve conf: Fix type for @liveStatus in virDomainObjListLoadAllConfigs 2017-11-09 10:37:58 +01:00
conf conf: Fix type for @liveStatus in virDomainObjListLoadAllConfigs 2017-11-09 10:37:58 +01:00
cpu Remove backslash alignment attempts 2017-11-03 13:24:12 +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 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 conf: Fix type for @liveStatus in virDomainObjListLoadAllConfigs 2017-11-09 10:37:58 +01:00
locking rpc,lockd: Add missing netserver refcount increment on reload 2017-11-06 16:19:11 -05:00
logging Increase default file handle limits for virtlogd 2017-10-26 12:29:28 +02:00
lxc conf: Fix type for @liveStatus in virDomainObjListLoadAllConfigs 2017-11-09 10:37:58 +01:00
network maint: Remove not-so-much informative block commentaries 2017-10-18 13:38:59 +02:00
node_device Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
nwfilter Remove backslash alignment attempts 2017-11-03 13:24:12 +01: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 conf: Fix type for @liveStatus in virDomainObjListLoadAllConfigs 2017-11-09 10:37:58 +01:00
remote Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
rpc rpc,lockd: Add missing netserver refcount increment on reload 2017-11-06 16:19:11 -05:00
secret secret: Handle object list removal and deletion properly 2017-07-25 09:15:30 -04:00
security Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
storage storage: Use virStoragePoolObjGetDef accessor for new driver events 2017-11-07 14:12:52 -05:00
test interface: Make _virInterfaceObjList virObjectRWLockable 2017-10-19 15:39:44 -04:00
uml conf: Fix type for @liveStatus in virDomainObjListLoadAllConfigs 2017-11-09 10:37:58 +01:00
util virconf: properly set the end of content 2017-11-09 08:04:26 -07:00
vbox vbox: Add SAS controller support 2017-11-07 15:38:43 -05:00
vmware conf: Pass config.priv to xmlopt->privateData.alloc 2017-07-25 17:02:27 +02:00
vmx Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
vz Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
xen Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
xenapi conf: merge virDomainLifecycleCrashAction with virDomainLifecycleAction 2017-10-19 11:52:09 +02:00
xenconfig storage: Store RBD image name as pool and image name 2017-11-07 14:58:04 +01: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
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 Remove backslash alignment attempts 2017-11-03 13:24:12 +01: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 conf: s/virDomainObjGetShortName/virDomainDefGetShortName/ 2017-11-07 13:43:00 +01:00
libvirt_probes.d
libvirt_public.syms lib: introduce virDomainSetLifecycleAction() API 2017-10-19 11:52:26 +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-admin.c Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01: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 Print hex values with '0x' prefix and octal with '0' in debug messages 2017-09-25 13:34:53 +01: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 Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemu_protocol-structs
README
remote_protocol-structs lib: introduce virDomainSetLifecycleAction() API 2017-10-19 11:52:26 +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