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 XML: escape strings where we should do it 2015-05-12 12:05:07 +02:00
cpu_conf.h conf: Move all NUMA configuration to virDomainNuma 2015-02-20 17:50:08 +01:00
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 qemu: Add support to Add/Delete IOThreads 2015-04-27 12:36:36 -04:00
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 Remove use of nwfilterPrivateData from nwfilter driver 2015-01-27 12:02:03 +00:00
domain_nwfilter.h Remove use of nwfilterPrivateData from nwfilter driver 2015-01-27 12:02:03 +00:00
interface_conf.c interface: don't error out if a bond has no interfaces 2015-05-27 14:25:45 -04:00
interface_conf.h maint: Prohibit "devname" by a syntax check rules 2014-10-01 16:39:01 +02:00
netdev_bandwidth_conf.c virNetDevBandwidthParseRate: Reject negative values 2015-08-10 13:47:48 +02:00
netdev_bandwidth_conf.h qemu: add udp interface support 2015-09-02 10:17:50 +02:00
netdev_vlan_conf.c Indent top-level labels by one space in src/conf/ 2014-03-25 14:58:38 +01:00
netdev_vlan_conf.h
netdev_vport_profile_conf.c docs: schema and docs for the midonet virtualport type 2015-03-17 13:09:05 -04:00
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 Replace virNetworkFree with virObjectUnref 2014-12-02 11:03:40 -05:00
network_event.h
networkcommon_conf.c network: Resolve Coverity FORWARD_NULL 2015-01-16 06:40:15 -05:00
networkcommon_conf.h Use the network route definitions for domains 2015-01-16 10:14:03 +01:00
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 numa_conf: Introduce virDomainNumaGetMaxCPUID 2015-08-07 17:19:03 +02:00
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 Remove pointless storage of var names in virNWFilterHashTable 2014-04-25 15:44:09 +01:00
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 nwfilter: Change 'index' to 'idx' 2015-04-14 11:18:28 -04:00
object_event_private.h
object_event.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
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