1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00
libvirt/src
Kristina Hanicova 511bdb0bb2 qemu: don't raise error upon interface update without <frames/> for <rx/> in coalesce
With this, incomplete XML without <frames/> for <rx/> in coalesce
won't raise error as before. It will leave the coalesce parameter
empty, thanks to passing it as a parameter and return an integer
to indicate error state - previously it returned pointer (or NULL
for both error and incomplete XML).
I also added a test case to test this functionality in the
qemuxml2xmltest.

The code went through some refactoring:
* change of a condition
* addition of a parameter
* change of order, that allowed removal of VIR_FREE
* removal of redundant labels and variables

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1535930
Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2021-03-23 15:37:45 +01:00
..
access Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
admin Use g_steal_pointer where possible 2021-03-01 15:54:42 +01:00
bhyve Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
conf qemu: don't raise error upon interface update without <frames/> for <rx/> in coalesce 2021-03-23 15:37:45 +01:00
cpu virCPUx86DataParse: Don't check error from x86FeatureNames 2021-03-02 09:50:19 +01:00
cpu_map cpu_map: Fix spelling of svme-addr-chk feature 2021-03-04 09:33:39 +01:00
esx Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
hyperv Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
hypervisor domain_cgroup.c: update domain after setting blkio.weight 2021-03-23 10:15:30 -03:00
interface Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
keycodemapdb@27acf0ef82
libxl Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
locking Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
logging virtlo(g|ck)d: Fix exec-restart 2021-03-12 16:08:28 +01:00
lxc Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
network lib: Put some variable declarations on individual lines 2021-03-15 09:38:18 +01:00
node_device nodedev: Don't crash when exiting before init is done 2021-03-18 13:09:44 +01:00
nwfilter lib: Put some variable declarations on individual lines 2021-03-15 09:38:18 +01:00
openvz lib: Put some variable declarations on individual lines 2021-03-15 09:38:18 +01:00
qemu qemuCheckpointDiscardBitmaps: Refuse to delete checkpoint with NULL bitmap name 2021-03-23 14:06:31 +01:00
remote migration/dirtyrate: Introduce virDomainStartDirtyRateCalc API 2021-03-18 08:50:25 +01:00
rpc Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
secret lib: Replace virFileMakePathWithMode() with g_mkdir_with_parents() 2021-03-04 20:52:23 +01:00
security lib: Put some variable declarations on individual lines 2021-03-15 09:38:18 +01:00
storage Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
storage_file Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
test lib: Put some variable declarations on individual lines 2021-03-15 09:38:18 +01:00
util qemu: command: Use JSON for QAPIfied -object directly 2021-03-23 14:06:31 +01:00
vbox Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
vmware vmware: convert VIR_FREE to g_free in other functions that free their arg 2021-02-12 12:10:38 -05:00
vmx virIndexToDiskName: Make 'idx' unsigned and remove check 2021-03-05 15:33:34 +01:00
vz lib: Put some variable declarations on individual lines 2021-03-15 09:38:18 +01:00
admin_protocol-structs
datatypes.c datatypes: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
datatypes.h datatypes.h: register AUTOPTR_CLEANUP_FUNC for virNodeDevicePtr 2021-02-17 15:47:47 -03:00
driver-hypervisor.h migration/dirtyrate: Introduce virDomainStartDirtyRateCalc API 2021-03-18 08:50:25 +01:00
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 log error if virConnectCacheOnceInit() fails 2021-02-02 00:27:27 -05:00
driver.h src: don't hide error in VIR_DRV_SUPPORTS_FEATURE 2021-01-06 17:10:10 +03:00
internal.h internal.h: Introduce and use VIR_IS_POW2() 2020-12-04 16:24:19 +01: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 qemu: command: Use JSON for QAPIfied -object directly 2021-03-23 14:06:31 +01:00
libvirt_probes.d drop libdbus from libvirt 2020-09-17 18:20:33 +02:00
libvirt_public.syms migration/dirtyrate: Introduce virDomainStartDirtyRateCalc API 2021-03-18 08:50:25 +01:00
libvirt_qemu.syms
libvirt_remote.syms virnetdaemon: Introduce virNetDaemonQuitExecRestart 2021-03-12 16:08:28 +01:00
libvirt_sasl.syms
libvirt_vmware.syms
libvirt_vmx.syms vmx: hide private helpers 2020-10-14 11:23:18 +02:00
libvirt-domain-checkpoint.c Fix name prefix of VIR_DOMAIN_CHECKPOINT_REDEFINE_VALIDATE 2020-11-09 16:29:06 +00:00
libvirt-domain-snapshot.c api: Discourage use of VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE 2021-02-16 12:25:30 +01:00
libvirt-domain.c migration/dirtyrate: Extend dirtyrate statistics for domGetStats 2021-03-18 08:50:25 +01:00
libvirt-host.c src: adopt to VIR_DRV_SUPPORTS_FEATURE return -1 2021-01-06 17:10:01 +03:00
libvirt-interface.c
libvirt-lxc.c use more virStrcpy() and virStrcpyStatic() 2021-01-04 20:18:24 +01:00
libvirt-lxc.pc.in
libvirt-network.c lib: Debug print all arguments of virNetworkUpdate() 2021-03-16 09:17:08 +01:00
libvirt-nodedev.c virsh: nodedev: filter by AP Matrix capability 2020-12-09 14:03:05 +01:00
libvirt-nwfilter.c
libvirt-qemu.c
libvirt-qemu.pc.in
libvirt-secret.c
libvirt-storage.c
libvirt-stream.c src: libvirt-stream: use g_new0 instead of VIR_ALLOC* 2020-10-01 12:34:13 +02:00
libvirt.c virConnectOpen: Require root dir to be absolute path 2021-03-12 15:40:13 +01:00
libvirt.conf
libvirt.pc.in
lock_protocol-structs
lxc_monitor_protocol-structs
lxc_protocol-structs
meson.build src: ensure GSource background unref happens in correct event loop 2021-03-17 09:16:05 +00:00
qemu_protocol-structs
README
remote_protocol-structs migration/dirtyrate: Introduce virDomainStartDirtyRateCalc API 2021-03-18 08:50:25 +01: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:

 * 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