libvirt/src/conf
Boris Fiuczynski dc692438f3 conf: Revert some code to resolve issues for hostdev hotplug
This patch reverts parts of commits 0d8b24f6b and 0785966d dealing with
the addition of a controller during virDomainHostdevAssignAddress. This
caused a regression for the hostdev hotplug path which assumes the
qemuDomainFindOrCreateSCSIDiskController will add the new controller
during qemuDomainAttachHostSCSIDevice to both the running domain and
the domain def controller list when the controller doesn't yet exist
(whether due to no SCSI controllers existing or the addition of a new
controller because existing ones are full).

Since commit id 0d8b24f6 will call virDomainHostdevAssignAddress during
virDomainDeviceDefPostParseInternal which is called either during domain
definition post processing (via an iterator during virDomainDefPostParse)
or directly from virDomainDeviceDefParse during hotplug, the change
broke the "side effect" of being able to add both a hostdev and controller
to the running domain.

The regression would only be seen if the running domain didn't have a
SCSI controller already defined or if the existing SCSI controller was
"full" of devices and a new controller needed to be created.

This patch will also add some extra comments to the code to avoid a
similar future change.

Signed-off-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Reviewed-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
Reviewed-by: Stefan Zimmermann <stzi@linux.vnet.ibm.com>
2015-12-03 11:22:51 -05:00
..
capabilities.c conf: Add new VIR_DOMAIN_VIRT_NONE enum 2015-09-25 15:33:53 -04:00
capabilities.h conf: Add new VIR_DOMAIN_VIRT_NONE enum 2015-09-25 15:33:53 -04: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: more useful error message when pci function is out of range 2015-08-08 18:37:35 -04:00
device_conf.h conf: more useful error message when pci function is out of range 2015-08-08 18:37:35 -04:00
domain_addr.c conf: new pcie-controller model "pcie-switch-downstream-port" 2015-08-09 22:30:47 -04:00
domain_addr.h conf: new pci controller model "pcie-switch-upstream-port" 2015-08-09 22:12:29 -04:00
domain_audit.c qemu: Use 'niothreadids' instead of 'iothreads' 2015-10-16 06:49:19 -04:00
domain_audit.h qemu: Add support to Add/Delete IOThreads 2015-04-27 12:36:36 -04:00
domain_capabilities.c XML: escape strings where we should do it 2015-05-12 12:05:07 +02:00
domain_capabilities.h domaincaps: Expose UEFI binary path, if it exists 2014-09-17 16:29:49 +02:00
domain_conf.c conf: Revert some code to resolve issues for hostdev hotplug 2015-12-03 11:22:51 -05:00
domain_conf.h conf: Split virDomainObjList into a separate file 2015-11-30 13:55:10 +01:00
domain_event.c Add VIR_DOMAIN_EVENT_ID_DEVICE_ADDED event 2015-04-15 17:06:01 +02:00
domain_event.h Add VIR_DOMAIN_EVENT_ID_DEVICE_ADDED event 2015-04-15 17:06:01 +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
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 Avoid using !STREQ and !STRNEQ 2015-10-21 15:03:35 +02:00
network_conf.h conf: Add getter for network routes 2015-07-14 08:04:49 +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: support reporting maxCount attribute for virtual_functions cap 2015-11-24 12:29:31 -05:00
node_device_conf.h conf: support reporting maxCount attribute for virtual_functions cap 2015-11-24 12:29:31 -05:00
numa_conf.c conf: fix crash when parsing a unordered NUMA <cell/> 2015-09-08 10:40:20 +02:00
numa_conf.h numa_conf: Introduce virDomainNumaGetMaxCPUID 2015-08-07 17:19:03 +02:00
nwfilter_conf.c Avoid using !STREQ and !STRNEQ 2015-10-21 15:03:35 +02:00
nwfilter_conf.h conf: Split virDomainObjList into a separate file 2015-11-30 13:55:10 +01:00
nwfilter_ipaddrmap.c
nwfilter_ipaddrmap.h
nwfilter_params.c Avoid using !STREQ and !STRNEQ 2015-10-21 15:03:35 +02: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_conf.h
snapshot_conf.c domain: conf: Drop expectedVirtTypes 2015-04-20 16:43:43 -04:00
snapshot_conf.h domain: conf: Drop expectedVirtTypes 2015-04-20 16:43:43 -04:00
storage_conf.c Avoid using !STREQ and !STRNEQ 2015-10-21 15:03:35 +02:00
storage_conf.h storage: Make active boolean 2015-11-12 06:30:32 -05:00
virchrdev.c check if console/channel PTY is null before attempting to open 2015-06-03 18:13:06 +02:00
virchrdev.h
virdomainobjlist.c conf: Split virDomainObjList into a separate file 2015-11-30 13:55:10 +01:00
virdomainobjlist.h conf: Split virDomainObjList into a separate file 2015-11-30 13:55:10 +01:00