]> xenbits.xensource.com Git - libvirt.git/commit
qemu: prefer the PCI bus alias from status XML
authorJán Tomko <jtomko@redhat.com>
Wed, 29 Nov 2017 13:38:52 +0000 (14:38 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 30 Nov 2017 15:49:05 +0000 (16:49 +0100)
commitdacfc6b10bcff1c275d21a37edf0bc83e0947492
treee54aa8aad31a2a3add362666d549699abf8969b3
parent309cd46b400d80420615b19adfebf7158492ae3b
qemu: prefer the PCI bus alias from status XML

For some corner cases, virQEMUCapsHasPCIMultiBus depends on the QEMU
version, which is by design not stored in the status XML and therefore
it cannot be fixed for all existing running domains.

Prefer the controller alias read from the status XML when formatting
PCI addresses and only fall back to using virQEMUCapsHasPCIMultiBus
if the alias is a user alias.

This fixes hotplug after daemon restart for domains not using user
aliases.

Partially reverts commit 937f3195.

https://bugzilla.redhat.com/show_bug.cgi?id=1518148
src/qemu/qemu_command.c