libvirt/src/conf
Laine Stump c026f8f1c2 qemu: auto-assign addresses when <address type='pci'/> is specified
Rather than only assigning a PCI address when no address is given at
all, also do it when the config says that the address type is 'pci',
but it gives no address (virDeviceInfoPCIAddressWanted()).

There are also several places after parsing but prior to address
assignment where code previously expected that any info with address
type='pci' would have a *valid* PCI address, which isn't always the
case - now we check not only for type='pci', but also for a valid
address (virDeviceInfoPCIAddressPresent()).

The test case added in this patch was directly copied from Cole's patch titled:

    qemu: Wire up address type=pci auto_allocate
2016-05-20 13:54:26 -04:00
..
capabilities.c conf: add net device prefix to capabilities 2016-02-04 11:15:51 +00:00
capabilities.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
cpu_conf.c
cpu_conf.h
device_conf.c conf: allow type='pci' addresses with no address attributes specified 2016-05-20 13:54:25 -04:00
device_conf.h conf: new functions to check if PCI address is wanted/present 2016-05-20 13:54:25 -04:00
domain_addr.c qemu: auto-assign addresses when <address type='pci'/> is specified 2016-05-20 13:54:26 -04:00
domain_addr.h Change virDevicePCIAddress to virPCIDeviceAddress 2016-05-02 15:46:23 +02:00
domain_audit.c Include sysmacros.h where needed 2016-04-18 20:36:57 +02:00
domain_audit.h
domain_capabilities.c domaincaps: Report video modelType 2016-05-09 16:05:31 -04:00
domain_capabilities.h conf: don't redefine virDomainCapsDeviceHostdev 2016-05-10 07:12:10 +03:00
domain_conf.c conf: allow type='pci' addresses with no address attributes specified 2016-05-20 13:54:25 -04:00
domain_conf.h conf: move virDomainDeviceInfo definition from domain_conf.h to device_conf.h 2016-05-20 13:54:25 -04:00
domain_event.c Add VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED event 2016-04-13 13:26:29 +02:00
domain_event.h Add VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED event 2016-04-13 13:26:29 +02:00
domain_nwfilter.c
domain_nwfilter.h
interface_conf.c
interface_conf.h
netdev_bandwidth_conf.c
netdev_bandwidth_conf.h
netdev_vlan_conf.c
netdev_vlan_conf.h
netdev_vport_profile_conf.c
netdev_vport_profile_conf.h
network_conf.c conf: network: reject name containing '/' 2016-05-02 10:06:04 -04:00
network_conf.h Change virDevicePCIAddress to virPCIDeviceAddress 2016-05-02 15:46:23 +02:00
network_event.c
network_event.h
networkcommon_conf.c
networkcommon_conf.h
node_device_conf.c conf: Fix error path in virNodeDevPCICapabilityParseXML 2016-05-09 19:33:57 -04:00
node_device_conf.h nodedev: Expose PCI header type 2016-03-18 17:35:06 +01:00
numa_conf.c Drop inline keyword from some functions. 2016-03-03 14:39:57 +01:00
numa_conf.h
nwfilter_conf.c nwfilter: Save config to disk if we generated a UUID 2016-05-02 10:06:04 -04:00
nwfilter_conf.h nwfilter: Save config to disk if we generated a UUID 2016-05-02 10:06:04 -04:00
nwfilter_ipaddrmap.c
nwfilter_ipaddrmap.h
nwfilter_params.c util: Add a return value to void hash iterators 2016-02-17 12:46:34 +01:00
nwfilter_params.h
object_event_private.h
object_event.c
object_event.h
secret_conf.c secret: Change virSecretDef variable names 2016-04-25 15:45:29 -04:00
secret_conf.h secret: Change virSecretDef variable names 2016-04-25 15:45:29 -04:00
snapshot_conf.c util: Add a return value to void hash iterators 2016-02-17 12:46:34 +01:00
snapshot_conf.h conf: add caps to virDomainSnapshotDefFormat 2016-02-05 10:57:39 +00:00
storage_conf.c storage: Fix regression cloning volume into a logical pool 2016-05-11 09:06:26 -04:00
storage_conf.h Change virDevicePCIAddress to virPCIDeviceAddress 2016-05-02 15:46:23 +02:00
virchrdev.c util: Add a return value to void hash iterators 2016-02-17 12:46:34 +01:00
virchrdev.h
virdomainobjlist.c util: Add a return value to void hash iterators 2016-02-17 12:46:34 +01:00
virdomainobjlist.h qemu: qemuDomainRename and virDomainObjListNumOfDomains ABBA deadlock fix 2016-02-03 15:20:11 +01:00
virsecretobj.c More usage of virGetLastErrorMessage 2016-05-19 15:17:03 -04:00
virsecretobj.h secret: Introduce virSecretObjGetValue and virSecretObjGetValueSize 2016-04-25 15:45:29 -04:00