libvirt/src
Peter Krempa f8d6b319a6 virStorageSourceParseNBDColonString: Rewrite to match what qemu does
Our implementation wasn't quite able to parse everything that qemu does.
This patch rewrites the parser to a code that semantically resembles the
combination of 'nbd_parse_filename' and 'inet_parse' methods in qemu to
be able to parse the strings in an equivalent manner.

The only thing that libvirt doesn't do is to check the lengths of
various components in the nbd string in places where qemu uses constant
size buffers.

The test cases validate that some of the corner cases involving colons
are parsed properly.

https://bugzilla.redhat.com/show_bug.cgi?id=1826652

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2020-04-27 08:05:49 +02:00
..
access Remove virutil.h from all header files 2020-02-24 23:15:50 +01:00
admin admin: Introduce virAdmServerUpdateTlsFiles 2020-03-13 17:07:32 +00:00
bhyve bhyve: add missing param to virDomainPCIAddressBusSetModel 2020-04-16 15:49:28 +01:00
conf qemu: Implement the aio mode io_uring 2020-04-24 09:17:05 +02:00
cpu cpu_x86: Add support for stepping part of CPU signature 2020-04-08 17:48:07 +02:00
cpu_map cpu_map: Distinguish Cascadelake-Server from Skylake-Server 2020-04-08 17:52:50 +02:00
esx virsh: include virutil.h where used 2020-02-24 23:15:50 +01:00
hyperv
hypervisor virDomainDriverGenerateMachineName: Factor out embed path hashing 2020-04-07 15:26:22 +02:00
interface systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
keycodemapdb@317d3eeb96
libxl xenconfig: Add support for 'passthrough' hypervisor feature 2020-04-21 09:21:42 -06:00
locking systemd: Tweak existing sysconf files 2020-04-03 11:50:35 +02:00
logging systemd: Tweak existing sysconf files 2020-04-03 11:50:35 +02:00
lxc Remove all usage of virRun 2020-04-23 12:49:30 +02:00
network conf: Add <lease/> option for <dhcp/> settings 2020-04-23 10:59:23 +02:00
node_device udevHandleOneDevice: Remove old instance of device on "move" 2020-04-22 12:51:15 +02:00
nwfilter systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
openvz openvz: switch from virRun to virCommand 2020-04-23 12:49:30 +02:00
qemu qemu: Implement the aio mode io_uring 2020-04-24 09:17:05 +02:00
remote remote: remoteDispatchDomainGetJobStats: Encode typed parameter strings 2020-04-24 08:56:57 +02:00
rpc rpc: avoid name lookup when dispatching node device APIs 2020-03-17 13:58:20 +00:00
secret systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
security Remove all usage of virRun 2020-04-23 12:49:30 +02:00
storage systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
test conf: Add <lease/> option for <dhcp/> settings 2020-04-23 10:59:23 +02:00
util virStorageSourceParseNBDColonString: Rewrite to match what qemu does 2020-04-27 08:05:49 +02:00
vbox conf: Add <lease/> option for <dhcp/> settings 2020-04-23 10:59:23 +02:00
vmware vmware: use virCommand instead of virRun 2020-04-23 12:49:30 +02:00
vmx vmx: vmware: move video default logic to driver 2020-03-25 09:31:28 +01:00
vz systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
admin_protocol-structs admin: Introduce virAdmServerUpdateTlsFiles 2020-03-13 17:07:32 +00:00
datatypes.c
datatypes.h
driver-hypervisor.h
driver-interface.h
driver-network.h
driver-nodedev.h
driver-nwfilter.h
driver-secret.h
driver-state.h
driver-storage.h
driver-stream.h
driver.c driver: Yet 1 more g_autofree conversion change 2020-04-14 15:36:53 +02:00
driver.h
internal.h src: ensure use of g_printf / g_fprintf functions 2020-02-04 14:00:45 +00:00
libvirt_driver_modules.syms
libvirt_esx.syms
libvirt_internal.h
libvirt_libssh2.syms
libvirt_libssh.syms
libvirt_linux.syms
libvirt_lxc.syms
libvirt_openvz.syms
libvirt_private.syms util: remove virRun 2020-04-23 12:49:30 +02:00
libvirt_probes.d util: delete the poll() based event loop impl 2020-02-07 15:03:54 +00:00
libvirt_public.syms
libvirt_qemu_probes.d
libvirt_qemu.syms
libvirt_remote.syms virnetserver: Introduce virNetServerUpdateTlsFiles 2020-03-13 17:07:32 +00:00
libvirt_sasl.syms
libvirt_vmware.syms
libvirt_vmx.syms
libvirt-domain-checkpoint.c
libvirt-domain-snapshot.c
libvirt-domain.c api: disallow virDomainAgentSetResponseTimeout() on read-only connections 2020-03-23 14:47:38 +01:00
libvirt-host.c
libvirt-interface.c
libvirt-lxc.c
libvirt-lxc.pc.in
libvirt-network.c
libvirt-nodedev.c
libvirt-nwfilter.c
libvirt-qemu.c
libvirt-qemu.pc.in
libvirt-secret.c
libvirt-storage.c
libvirt-stream.c libvirt-stream: Convert to the g_autofree usage 2020-04-14 15:37:01 +02:00
libvirt.c src: fix mixup of stack and heap allocated data in auth callback 2020-03-06 17:02:10 +00:00
libvirt.conf
libvirt.pc.in
lock_protocol-structs
lxc_monitor_protocol-structs
lxc_protocol-structs
Makefile.am src: introduce hypervisor/domain_cgroup.c 2020-02-23 14:02:23 +01:00
qemu_protocol-structs
README
remote_protocol-structs
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:

 * 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
 * qemu/         - QEMU / KVM using qemu CLI/monitor
 * remote/       - Generic libvirt native RPC client
 * test/         - A "mock" driver for testing
 * vbox/         - Virtual Box using native API
 * vmware/       - VMware Workstation and Player using the vmrun tool
 * xen/          - Xen using hypercalls, XenD SEXPR & XenStore


Finally some secondary drivers that are shared for several HVs.
Currently these are used by LXC, OpenVZ, QEMU and Xen drivers.
The ESX, Hyper-V, 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