[libvirt] [PATCH 12/34] Detect PCI addresses at QEMU startup
veillard at redhat.com
Fri Jan 15 15:15:54 UTC 2010
On Fri, Jan 08, 2010 at 05:23:08PM +0000, Daniel P. Berrange wrote:
> Hotunplug of devices requires that we know their PCI address. Even
> hotplug of SCSI drives, required that we know the PCI address of
> the SCSI controller to attach the drive to. We can find this out
> by running 'info pci' and then correlating the vendor/product IDs
> with the devices we booted with.
> Although this approach is somewhat fragile, it is the only viable
> option with QEMU < 0.12, since there is no way for libvirto set
> explicit PCI addresses when creating devices in the first place.
> For QEMU > 0.12, this code will not be used.
Okay, this looks a bit fragile, but a temporary measure,
parsing code looked fine,
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel at veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
More information about the libvir-list