libvirt/src/conf
Michal Privoznik 968aaff77a virDomainDefCopy: Skip ostype checks
When parsing domain XML the virCapsDomainData lookup is performed
in order to fill in missing def->os.arch and def->os.machine
strings. Well, when doing copy of already existing virDomainDef
we don't want any automagic fill in of defaults (and those two
strings are going to be provided at this point anyway by first
parse of the domain XML).

What is even worse is that we do not look up capabilities for
parsed emulator path rather some generic capabilities for parsed
arch. Therefore, if emulator points to qemu under non-default
path (say $HOME/qemu-system-arm) but there's no such qemu under
the default path (say /usr/bin/qemu-system-arm) the capabilities
lookup fails and creating the copy is denied.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2018-06-05 09:21:35 +02:00
..
capabilities.c capabilities: Extend capabilities with iommu_support 2018-06-05 08:33:13 +02:00
capabilities.h capabilities: Extend capabilities with iommu_support 2018-06-05 08:33:13 +02:00
cpu_conf.c conf: include x86 microcode version in virsh capabilities 2018-01-04 16:52:03 +01:00
cpu_conf.h conf: include x86 microcode version in virsh capabilities 2018-01-04 16:52:03 +01:00
device_conf.c
device_conf.h conf: Add rom.enabled attribute for PCI devices 2018-04-23 15:20:54 +02:00
domain_addr.c conf: Remove dubious code from virDomainPCIAddressSetGrow() 2018-04-09 09:12:21 +02:00
domain_addr.h conf: Add virDomainPCIAddressSet.isPCIeToPCIBridgeSupported 2018-04-06 14:12:19 +02:00
domain_audit.c audit: Enforce enum switch type cast in virDomainAuditHostdev 2018-05-31 12:09:50 +02:00
domain_audit.h conf: audit passthrough input devices at domain startup 2017-10-19 14:34:21 +02:00
domain_capabilities.c domcaps: Add 'genid' to domain capabilities 2018-05-25 08:15:58 -04:00
domain_capabilities.h domcaps: Add 'genid' to domain capabilities 2018-05-25 08:15:58 -04:00
domain_conf.c virDomainDefCopy: Skip ostype checks 2018-06-05 09:21:35 +02:00
domain_conf.h conf: introduce virDomainVsockDefEquals 2018-06-05 07:51:18 +02:00
domain_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
domain_event.h
domain_nwfilter.c nwfilter: pass vm name in when instantiating filters 2018-05-03 17:00:57 +01:00
domain_nwfilter.h nwfilter: pass vm name in when instantiating filters 2018-05-03 17:00:57 +01:00
interface_conf.c use virXMLNodeNameEqual instead of xmlStrEqual 2017-08-14 14:31:52 +02:00
interface_conf.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
Makefile.inc.am make: split XML conf build rules into conf/Makefile.inc.am 2018-03-05 17:12:01 +00:00
netdev_bandwidth_conf.c use virXMLNodeNameEqual instead of xmlStrEqual 2017-08-14 14:31:52 +02:00
netdev_bandwidth_conf.h Revert "virNetDevSupportBandwidth: Enable QoS for vhostuser" 2017-11-13 06:25:16 +01:00
netdev_vlan_conf.c
netdev_vlan_conf.h
netdev_vport_profile_conf.c use virXMLNodeNameEqual instead of xmlStrEqual 2017-08-14 14:31:52 +02:00
netdev_vport_profile_conf.h
network_conf.c Check return status for virUUIDGenerate 2018-04-24 08:52:59 -04:00
network_conf.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
network_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
network_event.h
networkcommon_conf.c
networkcommon_conf.h
node_device_conf.c build: Fix broken build on FreeBSD and OSX after recent nodedev series 2018-01-29 17:53:13 +01:00
node_device_conf.h conf: Replace usage of virNodeDevCapMdevType with virMediatedDeviceType 2018-01-29 15:34:30 +01:00
node_device_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
node_device_event.h
numa_conf.c conf: Introduce memoryBacking/discard 2018-05-14 09:42:20 +02:00
numa_conf.h conf: Introduce memoryBacking/discard 2018-05-14 09:42:20 +02:00
nwfilter_conf.c nwfilter: introduce virNWFilterBinding to decouple from virDomainNet 2018-05-03 17:00:57 +01:00
nwfilter_conf.h nwfilter: introduce virNWFilterBinding to decouple from virDomainNet 2018-05-03 17:00:57 +01:00
nwfilter_ipaddrmap.c nwfilter: remove virNWFilterHashTable typedefs entirely 2018-05-03 17:00:57 +01:00
nwfilter_ipaddrmap.h
nwfilter_params.c nwfilter: remove virNWFilterHashTable typedefs entirely 2018-05-03 17:00:57 +01:00
nwfilter_params.h nwfilter: remove virNWFilterHashTable typedefs entirely 2018-05-03 17:00:57 +01:00
object_event_private.h
object_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
object_event.h
secret_conf.c Check return status for virUUIDGenerate 2018-04-24 08:52:59 -04:00
secret_conf.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
secret_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
secret_event.h
snapshot_conf.c conf: Add error checking to virDomainSnapshotDiskDefFormat 2018-04-19 14:23:39 -04:00
snapshot_conf.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
storage_adapter_conf.c
storage_adapter_conf.h
storage_conf.c util: storage: Sanitize parsing of disk encryption XMLs 2018-03-08 14:29:50 +01:00
storage_conf.h storage: Privatize virStoragePoolObj and virStorageVolDefList 2017-11-07 14:12:52 -05:00
storage_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
storage_event.h
virchrdev.c
virchrdev.h
virdomainobjlist.c conf: Clean up object referencing for Add and Remove 2018-05-03 19:09:03 -04:00
virdomainobjlist.h conf: Rework/rename virDomainObjListFindByIDRef 2018-04-23 06:41:45 -04:00
virinterfaceobj.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
virinterfaceobj.h interface: Make _virInterfaceObjList virObjectRWLockable 2017-10-19 15:39:44 -04:00
virnetworkobj.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
virnetworkobj.h network: Fix virNetworkObjBridgeInUse return type 2017-08-28 14:02:22 -04:00
virnodedeviceobj.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
virnodedeviceobj.h nodedev: Move privileged flag from udev private data to driver's state 2017-10-19 08:54:52 +02:00
virnwfilterobj.c nwfilter: Remove unnecessary UUID comparison bypass 2018-02-02 15:01:10 -05:00
virnwfilterobj.h nwfilter: remove obsolete code related to firewalld 2018-05-03 17:00:57 +01:00
virsavecookie.c use virXMLNodeNameEqual instead of xmlStrEqual 2017-08-14 14:31:52 +02:00
virsavecookie.h
virsecretobj.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
virsecretobj.h secret: Alter @aclfilter to just @filter 2017-08-16 14:24:38 -04:00
virstorageobj.c storage: Remove rwlocks during virStoragePoolObjListForEach 2018-05-29 08:36:30 -04:00
virstorageobj.h conf: Use bool for @check_active parameter 2018-01-04 10:54:08 -05:00