libvirt/src
Michal Privoznik 3c876d2428 qemu_firmware: Introduce qemuFirmwareFetchConfigs
Implementation for yet another part of firmware description
specification. This one covers selecting which files to parse.

There are three locations from which description files can be
loaded. In order of preference, from most generic to most
specific these are:

  /usr/share/qemu/firmware
  /etc/qemu/firmware
  $XDG_CONFIG_HOME/qemu/firmware

If a file is found in two or more locations then the most specific
one is used. Moreover, if file is empty then it means it is
overriding some generic description and disabling it.

Again, this is described in more details and with nice examples
in firmware.json specification (qemu commit 3a0adfc9bf).

However, there's one slight difference - for the root user the
home directory is not searched. This follows rules laid out by
similar look up processes, e.g. PKI x509 certs are not searched
in /root but they are looked for under /home.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2019-03-12 15:29:44 +01:00
..
access Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
admin
bhyve bhyve: Move autostarting of domains into bhyveStateInitialize 2019-03-06 10:20:31 +01:00
conf conf: Introduce firmware attribute to <os/> 2019-03-12 15:29:44 +01:00
cpu cpu: Don't access invalid memory in virCPUx86Translate 2019-03-07 15:30:40 +01:00
cpu_map cpu_map: Add more signatures for Skylake-Client CPU models 2019-03-05 14:47:49 +01:00
esx snapshot: Give virDomainSnapshotDefFormat its own flags 2019-03-07 17:31:40 -06:00
hyperv domain: Fix unknown flags diagnosis in virDomainGetXMLDesc 2019-02-19 16:52:51 -06:00
interface Use NULLSTR_EMPTY 2019-02-14 14:09:38 +01:00
keycodemapdb@16e5b07876
libxl Revert "virStateDriver - Separate AutoStart from Initialize" 2019-03-06 10:20:31 +01:00
locking Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
logging Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
lxc lxc: Try harder to stop/reboot containers 2019-03-07 18:02:51 +01:00
network Revert "virStateDriver - Separate AutoStart from Initialize" 2019-03-06 10:20:31 +01:00
node_device udev: wake up the udev thread for stopping it 2019-02-20 14:07:48 -05:00
nwfilter Use NULLSTR_EMPTY 2019-02-14 14:09:38 +01:00
openvz domain: Fix unknown flags diagnosis in virDomainGetXMLDesc 2019-02-19 16:52:51 -06:00
phyp domain: Fix unknown flags diagnosis in virDomainGetXMLDesc 2019-02-19 16:52:51 -06:00
qemu qemu_firmware: Introduce qemuFirmwareFetchConfigs 2019-03-12 15:29:44 +01:00
remote libvirt: Introduce virConnectGetStoragePoolCapabilities 2019-03-06 11:12:48 -05:00
rpc rpc: client: stream: fix multi thread abort/finish 2019-02-08 17:16:00 +01:00
secret
security apparmor: Add ptrace and signal rules for named profile 2019-03-06 09:51:01 -07:00
storage storage: Introduce storageConnectGetStoragePoolCapabilities 2019-03-06 11:12:48 -05:00
test snapshot: Give virDomainSnapshotDefFormat its own flags 2019-03-07 17:31:40 -06:00
util resctrl: Fix testing line 2019-03-12 09:53:48 +01:00
vbox snapshot: Give virDomainSnapshotDefFormat its own flags 2019-03-07 17:31:40 -06:00
vmware util: Rename virFileHasSuffix() to virStringHasCaseSuffix() 2019-03-07 10:08:47 +01:00
vmx Use virStringHasSuffix() where possible 2019-03-07 10:10:49 +01:00
vz snapshot: Give virDomainSnapshotDefFormat its own flags 2019-03-07 17:31:40 -06:00
xenapi
xenconfig util: string: Remove the 'virString' type 2019-03-04 13:04:20 +01:00
admin_protocol-structs
check-aclperms.pl
check-aclrules.pl
check-driverimpls.pl
check-drivername.pl
check-symfile.pl
check-symsorting.pl
datatypes.c Use NULLSTR_EMPTY 2019-02-14 14:09:38 +01:00
datatypes.h rpc: client stream: dispose private data on stream dispose 2019-02-08 16:51:45 +01:00
driver-hypervisor.h
driver-interface.h
driver-network.h
driver-nodedev.h
driver-nwfilter.h
driver-secret.h
driver-state.h Revert "Separate out StateAutoStart from StateInitialize" 2019-03-06 10:20:31 +01:00
driver-storage.h libvirt: Introduce virConnectGetStoragePoolCapabilities 2019-03-06 11:12:48 -05:00
driver-stream.h
driver.c
driver.h
dtrace2systemtap.pl
internal.h Remove EMPTYSTR macro 2019-02-14 14:09:38 +01:00
libvirt_admin_private.syms
libvirt_admin_public.syms
libvirt_atomic.syms
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 conf: Introduce firmware attribute to <os/> 2019-03-12 15:29:44 +01:00
libvirt_probes.d
libvirt_public.syms libvirt: Introduce virConnectGetStoragePoolCapabilities 2019-03-06 11:12:48 -05:00
libvirt_qemu_probes.d
libvirt_qemu.syms
libvirt_remote.syms rpc: client: incapsulate error checks 2019-02-08 16:51:45 +01:00
libvirt_sasl.syms
libvirt_vmware.syms
libvirt_vmx.syms
libvirt_xenconfig.syms
libvirt-admin.c Use NULLSTR_EMPTY 2019-02-14 14:09:38 +01:00
libvirt-admin.conf
libvirt-domain-snapshot.c snapshots: Trivial doc improvements 2019-03-07 20:52:06 -06:00
libvirt-domain.c domain: Document VIR_DOMAIN_XML_MIGRATABLE 2019-02-27 13:39:30 -06: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 Fix build-time pkg-config files in VPATH 2014-11-06 15:59:28 +01:00
libvirt-secret.c
libvirt-storage.c libvirt: Introduce virConnectGetStoragePoolCapabilities 2019-03-06 11:12:48 -05:00
libvirt-stream.c
libvirt.c Revert "Separate out StateAutoStart from StateInitialize" 2019-03-06 10:20:31 +01:00
libvirt.conf
libvirt.pc.in
lock_protocol-structs
lxc_monitor_protocol-structs
lxc_protocol-structs
Makefile.am
qemu_protocol-structs
README
remote_protocol-structs libvirt: Introduce virConnectGetStoragePoolCapabilities 2019-03-06 11:12:48 -05: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
 * 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
 * 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 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