libvirt/src
Pavel Hrdina de3289e2b5 remove HAL node device driver
There was one attempt a year ago done by me to drop HAL [1] but it was
never resolved. There was another time when Dan suggested to drop HAL
driver [2] but it was decided to keep it around in case device
assignment will be implemented for FreeBSD and the fact that
virt-manager uses node device driver [3].

I checked git history and code and it doesn't look like bhyve supports
device assignment so from that POV it should not block removing HAL.

The argument about virt-manager is not strong as well because libvirt
installed from FreeBSD packages doesn't have HAL support so it will not
affect these users as well [4].

The only users affected by this change would be the ones compiling
libvirt from GIT on FreeBSD.

I looked into alternatives and there is libudev-devd package on FreeBSD
but unfortunately it doesn't work as it doesn't list any devices when
used with libvirt. It provides libudev APIs using devd.

I also looked into devd directly and it provides some APIs but there are
no APIs for device monitoring and events so that would have to be
somehow done by libvirt.

Main motivation for dropping HAL support is to replace libdbus with GLib
dbus implementation and it cannot be done with HAL driver present in
libvirt because HAL APIs heavily depends on symbols provided by libdbus.

[1] <https://www.redhat.com/archives/libvir-list/2019-May/msg00203.html>
[2] <https://www.redhat.com/archives/libvir-list/2016-April/msg00992.html>
[3] <https://www.redhat.com/archives/libvir-list/2016-April/msg00994.html>
[4] <https://svnweb.freebsd.org/ports/head/devel/libvirt/Makefile?view=markup>

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2020-09-17 18:19:26 +02:00
..
access access: ensure ACL files are rebuilt when protocol changes 2020-09-16 15:53:27 +01:00
admin lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
bhyve Fix linkage to libutil and libkvm on FreeBSD 11 2020-09-10 13:11:46 +01:00
conf conf: Add virStorageSource member for SCSI host device config data 2020-09-15 15:20:23 +02:00
cpu cpu: Replace VIR_FREE with g_free 2020-09-11 15:33:55 +02:00
cpu_map meson: src: install cpu_map data 2020-08-03 09:27:04 +02:00
esx esx: implement domainInterfaceAddresses 2020-09-15 10:00:48 +02:00
hyperv hyperv: fix the number of threads per core 2020-09-16 10:14:42 +02:00
hypervisor Remove redundant conditions 2020-08-03 15:19:28 +02:00
interface meson: src: add check-aclrules test 2020-08-03 09:27:05 +02:00
keycodemapdb@27acf0ef82 keycodemapdb: update submodule for win32 keycode fix 2020-05-07 12:18:29 +01:00
libxl lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
locking lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
logging logging: Replace virMutex with GMutex 2020-08-21 11:34:23 +01:00
lxc Do not report error when setting affinity is allowed to fail 2020-09-07 11:35:36 +02:00
network network: don't wait for IPv6 DAD completion when starting a network 2020-09-10 11:41:08 -04:00
node_device remove HAL node device driver 2020-09-17 18:19:26 +02:00
nwfilter lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
openvz Move declarations before statements 2020-08-25 19:03:11 +02:00
qemu qemu: fix concurrency crash bug in force snapshot revert 2020-09-16 11:45:41 +03:00
remote daemon: Fix a comment typo in libvirtd.conf.in 2020-09-11 14:55:59 -06:00
rpc rpc: Use glib memory functions in virNetMessageSaveError 2020-09-11 18:19:58 +02:00
secret meson: src: add check-aclrules test 2020-08-03 09:27:05 +02:00
security apparmor: allow libvirtd to call virtiofsd 2020-08-26 10:34:53 +02:00
storage disk storage: fix allocation size for pool format dos 2020-09-09 16:53:40 +02:00
test test: fix emulator pin info in test driver 2020-08-08 11:07:15 +02:00
util util: Remove VIR_ALLOC_N_QUIET 2020-09-14 17:28:51 +02:00
vbox vbox: do not repeat the innotek namespace url 2020-09-01 21:58:45 +02:00
vmware meson: src: build libvirt.so library 2020-08-03 09:27:04 +02:00
vmx Prefer https: everywhere where possible 2020-09-01 21:58:46 +02:00
vz Move declarations before statements 2020-08-25 19:03:11 +02:00
admin_protocol-structs admin: Introduce virAdmServerUpdateTlsFiles 2020-03-13 17:07:32 +00:00
datatypes.c src: make virObjectUnref return void 2020-06-03 10:20:17 +01:00
datatypes.h define g_autoptr cleanup function for virNetworkDHCPLease 2020-07-20 19:08:07 -04:00
driver-hypervisor.h
driver-interface.h
driver-network.h
driver-nodedev.h
driver-nwfilter.h
driver-secret.h
driver-state.h libvirt: add stateShutdownPrepare/stateShutdownWait to drivers 2020-09-07 09:33:58 +03:00
driver-storage.h
driver-stream.h
driver.c util: use host module suffix when loading drivers 2020-08-26 10:30:18 +02:00
driver.h
internal.h lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
libvirt_driver_modules.syms util: create new virmodule.{c,h} files for dlopen support code 2018-05-03 12:47:43 +01:00
libvirt_esx.syms
libvirt_internal.h libvirt: add stateShutdownPrepare/stateShutdownWait to drivers 2020-09-07 09:33:58 +03:00
libvirt_libssh2.syms
libvirt_libssh.syms
libvirt_linux.syms
libvirt_lxc.syms
libvirt_openvz.syms
libvirt_private.syms node_device: mdev vfio-ccw support 2020-09-15 09:06:32 +02:00
libvirt_probes.d
libvirt_public.syms
libvirt_qemu.syms
libvirt_remote.syms rpc: merge logic for generating remote SSH shell script 2020-09-09 16:46:22 +01:00
libvirt_sasl.syms virneserverclient: Introduce virNetServerClientHasSASLSession 2016-05-03 15:52:50 +02:00
libvirt_vmware.syms
libvirt_vmx.syms
libvirt-domain-checkpoint.c checkpoint: Mention that VIR_DOMAIN_CHECKPOINT_XML_SIZE is expensive and stale 2020-07-07 12:58:19 +02:00
libvirt-domain-snapshot.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-domain.c peer2peer migration: allow connecting to local sockets 2020-09-04 10:20:49 +02:00
libvirt-host.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-interface.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-lxc.c Substitute security_context_t with char * 2020-07-15 14:31:07 +02:00
libvirt-lxc.pc.in meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
libvirt-network.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-nodedev.c virsh: nodedev: ability to filter CSS capabilities 2020-09-15 09:06:24 +02:00
libvirt-nwfilter.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-qemu.c
libvirt-qemu.pc.in meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
libvirt-secret.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-storage.c libvirt-storage: Document volume upload/download stream format 2020-08-24 13:32:53 +02:00
libvirt-stream.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt.c libvirt: add stateShutdownPrepare/stateShutdownWait to drivers 2020-09-07 09:33:58 +03:00
libvirt.conf
libvirt.pc.in meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
lock_protocol-structs
lxc_monitor_protocol-structs
lxc_protocol-structs
meson.build remote: use SocketMode=0600 when polkit is not compiled 2020-09-03 11:13:25 +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