]> xenbits.xensource.com Git - libvirt.git/commit
conf: Change when virDomainHostdevAssignAddress is called
authorJohn Ferlan <jferlan@redhat.com>
Fri, 19 Jun 2015 18:23:13 +0000 (14:23 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 3 Aug 2015 20:48:45 +0000 (16:48 -0400)
commit0d8b24f6b66304c65265c66770d000062c1bc03d
tree910baa2452a8a7116c27952c8451320d01fc1d0e
parent0785966d03c9b26ce127aadb93b4d3130a3af79f
conf: Change when virDomainHostdevAssignAddress is called

Rather than calling virDomainHostdevAssignAddress during the parsing
of the XML, move the setting of a default hostdev address to domain/
device post processing.

Since the parse code no longer generates an address, we can remove
the virDomainDefMaybeAddHostdevSCSIcontroller since the call to
virDomainHostdevAssignAddress will attempt to add the controllers
that were not already defined in the XML.

This patch will also enforce that the address type is type 'drive'
when a SCSI subsystem <hostdev> element is provided with an <address>.

Signed-off-by: John Ferlan <jferlan@redhat.com>
docs/formatdomain.html.in
src/conf/domain_conf.c