]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Extended qemuDomainAssignAddresses to be callable from everywhere.
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Fri, 29 Jun 2012 15:02:03 +0000 (17:02 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Jul 2012 09:19:05 +0000 (11:19 +0200)
commitf5dd58a6088cfc6e8bd354b693d399807a8ec395
tree855b2c6be0d37d664f8ea60d1c9bf322cc54994e
parent31351c316fee0487dcbc5ef6b630d75be6b212e5
qemu: Extended qemuDomainAssignAddresses to be callable from everywhere.

This is in preparation of the enablement of s390 guests with virtio devices.

The assignment of device addresses happens in different places, i.e. the
qemu driver and process modules as well as in the unit tests in slightly
different flavors. Currently, these are PPC spapr-vio and PCI
devices, virtio-s390 (not PCI based) will follow.

By optionally passing to qemuDomainAssignAddresses the domain
object and the capabilities it is now possible to call the function
from most of the places (except for hotplug) where address assignment
is done.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_driver.c
src/qemu/qemu_process.c