libvirt/src/conf
Roman Bogorodskiy b1e6324ca2 bhyve: auto allocate nmdm console paths
Currently, nmdm console device requires user to specify master and slave
path attributes (such as /dev/nmdm0A and /dev/nmdm0B respectively).
However, making user find a non-occupied device name might be not
convenient, especially for the remote connections.

Update the logic to make these attributes optional. In case if not
specified, use /dev/nmdm$UUID[AB], where $UUID is a domain's UUID.
With this schema it's unlikely nmdm device will clash with other domains
or even other non-bhyve nmdm devices.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2021-02-08 18:50:47 +04:00
..
backup_conf.c util: move virStorageSource code into conf 2021-01-22 11:10:27 +01:00
backup_conf.h backup: Allow configuring incremental backup per-disk individually 2020-07-08 08:40:30 +02:00
capabilities.c conf: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
capabilities.h qemu: report whether a machine type is deprecated in capabilities 2021-02-03 17:30:52 +00:00
checkpoint_conf.c conf: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
checkpoint_conf.h virDomainCheckpointRedefineCommit: Don't check ABI of definition in checkpoint 2020-12-04 16:15:03 +01:00
cpu_conf.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
cpu_conf.h conf: Add virCPUDefAddFeatureIfMissing 2020-11-24 20:13:23 +01:00
device_conf.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
device_conf.h virDomainNetFindIdx: add support for CCW addresses 2020-09-24 13:48:31 +02:00
domain_addr.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
domain_addr.h util: hash: Retire 'virHashTable' in favor of 'GHashTable' 2020-11-06 10:40:51 +01:00
domain_audit.c virpci, domain_audit: use virPCIDeviceAddressAsString() 2021-01-29 17:46:34 -03:00
domain_audit.h
domain_capabilities.c conf: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
domain_capabilities.h qemu: report whether a CPU model is deprecated in dom capabilities 2021-02-03 17:26:39 +00:00
domain_conf.c conf: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
domain_conf.h conf: introduce new taint flag for deprecated configuration 2021-02-03 17:30:58 +00:00
domain_event.c conf: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
domain_event.h libvirt: support memory failure event 2020-10-23 09:41:52 +02:00
domain_nwfilter.c conf: nwfilter: Replace 'virNWFilterHashTableCreate' with 'virHashNew' 2020-10-22 15:02:46 +02:00
domain_nwfilter.h
domain_validate.c bhyve: auto allocate nmdm console paths 2021-02-08 18:50:47 +04:00
domain_validate.h domain_validate.c: make virDomainDeviceDefValidateInternal() helpers static 2020-12-14 09:38:42 -03:00
interface_conf.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
interface_conf.h Remove virutil.h from all header files 2020-02-24 23:15:50 +01:00
meson.build util: move virStorageEncryption code into conf 2021-01-22 11:10:27 +01:00
moment_conf.c conf: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
moment_conf.h
netdev_bandwidth_conf.c conf: Add support for vDPA network devices 2020-10-20 14:46:52 -04:00
netdev_bandwidth_conf.h conf: do not pass vm object to virDomainClearNetBandwidth 2020-02-25 17:50:47 +01:00
netdev_vlan_conf.c conf: use g_new0 2020-10-08 11:09:27 +02:00
netdev_vlan_conf.h
netdev_vport_profile_conf.c conf: use g_new0 2020-10-08 11:09:27 +02:00
netdev_vport_profile_conf.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
network_conf.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
network_conf.h conf: convert network_conf.c to use g_auto* pointers 2020-06-15 16:02:16 -04:00
network_event.c
network_event.h
networkcommon_conf.c conf: use g_new0 2020-10-08 11:09:27 +02:00
networkcommon_conf.h
node_device_conf.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
node_device_conf.h node_device: detecting mdev_types capability on ap_matrix device 2020-12-09 14:03:05 +01:00
node_device_event.c
node_device_event.h
node_device_util.c virsh: include virutil.h where used 2020-02-24 23:15:50 +01:00
node_device_util.h
numa_conf.c conf: replace remaining straggler VIR_FREE with g_free in vir*Free() 2021-02-05 00:20:43 -05:00
numa_conf.h numa: expose HMAT APIs 2020-07-08 12:05:24 +02:00
nwfilter_conf.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
nwfilter_conf.h util: hash: Retire 'virHashTable' in favor of 'GHashTable' 2020-11-06 10:40:51 +01:00
nwfilter_ipaddrmap.c util: hash: Retire 'virHashTable' in favor of 'GHashTable' 2020-11-06 10:40:51 +01:00
nwfilter_ipaddrmap.h
nwfilter_params.c virNWFilterVarCombIter: Allocate 'iter' member separately 2021-02-03 16:09:25 +01:00
nwfilter_params.h virNWFilterVarCombIter: Allocate 'iter' member separately 2021-02-03 16:09:25 +01:00
object_event_private.h conf: fix alignment in virObjectEvent to be 8 not 4 bytes 2020-06-04 11:17:05 +01:00
object_event.c conf: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
object_event.h
secret_conf.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
secret_conf.h Remove virutil.h from all header files 2020-02-24 23:15:50 +01:00
secret_event.c
secret_event.h
snapshot_conf_priv.h virDomainSnapshotDiskDefFree: Export and register as autoptr func 2020-10-01 09:55:02 +02:00
snapshot_conf.c conf: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
snapshot_conf.h virDomainSnapshotDiskDefFree: Export and register as autoptr func 2020-10-01 09:55:02 +02:00
storage_adapter_conf.c VIR_XPATH_NODE_AUTORESTORE: remove semicolon from users 2020-08-25 19:03:12 +02:00
storage_adapter_conf.h
storage_capabilities.c conf: use g_auto() for all virBuffers 2020-07-08 16:34:17 -04:00
storage_capabilities.h conf: storagecaps: Fix broken attempt at being const-correct 2019-11-12 14:37:57 +01:00
storage_conf.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
storage_conf.h util: move virStorageEncryption code into conf 2021-01-22 11:10:27 +01:00
storage_encryption_conf.c conf: replace remaining straggler VIR_FREE with g_free in vir*Free() 2021-02-05 00:20:43 -05:00
storage_encryption_conf.h util: move virStorageEncryption code into conf 2021-01-22 11:10:27 +01:00
storage_event.c
storage_event.h
storage_source_conf.c conf: implement support for vhostuser disk 2021-02-03 18:56:34 +01:00
storage_source_conf.h conf: implement support for vhostuser disk 2021-02-03 18:56:34 +01:00
virchrdev.c conf: replace remaining straggler VIR_FREE with g_free in vir*Free() 2021-02-05 00:20:43 -05:00
virchrdev.h
virconftypes.h conf: allow to map sound device to host device 2020-08-25 08:42:16 +04:00
virdomaincheckpointobjlist.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
virdomaincheckpointobjlist.h
virdomainmomentobjlist.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
virdomainmomentobjlist.h
virdomainobjlist.c util: hash: Retire 'virHashTable' in favor of 'GHashTable' 2020-11-06 10:40:51 +01:00
virdomainobjlist.h conf: drop virCapsPtr param from domain obj list APIs 2019-12-09 10:17:27 +00:00
virdomainsnapshotobjlist.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
virdomainsnapshotobjlist.h
virinterfaceobj.c util: hash: Retire 'virHashTable' in favor of 'GHashTable' 2020-11-06 10:40:51 +01:00
virinterfaceobj.h
virnetworkobj.c conf: Write network config to disk after generating UUID 2020-11-20 11:43:56 +01:00
virnetworkobj.h
virnetworkportdef.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
virnetworkportdef.h conf: reduce includes in virnetworkportdef.h 2020-02-25 17:50:47 +01:00
virnodedeviceobj.c node_device: detecting mdev_types capability on ap_matrix device 2020-12-09 14:03:05 +01:00
virnodedeviceobj.h nodedev: add mdev support to virNodeDeviceCreateXML() 2020-06-19 10:39:55 +02:00
virnwfilterbindingdef.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
virnwfilterbindingdef.h util: hash: Retire 'virHashTable' in favor of 'GHashTable' 2020-11-06 10:40:51 +01:00
virnwfilterbindingobj.c conf: use g_auto() for all virBuffers 2020-07-08 16:34:17 -04:00
virnwfilterbindingobj.h
virnwfilterbindingobjlist.c util: hash: Retire 'virHashTable' in favor of 'GHashTable' 2020-11-06 10:40:51 +01:00
virnwfilterbindingobjlist.h
virnwfilterobj.c conf: replace VIR_FREE() with g_free() in vir*Free() functions 2021-02-02 00:27:58 -05:00
virnwfilterobj.h
virsavecookie.c VIR_XPATH_NODE_AUTORESTORE: remove semicolon from users 2020-08-25 19:03:12 +02:00
virsavecookie.h
virsecretobj.c conf: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
virsecretobj.h
virstorageobj.c conf: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
virstorageobj.h