[libvirt] [PATCH 0/4] Fix hotplug after daemon restart

Ján Tomko posted 4 patches 6 years, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1511967132.git.jtomko@redhat.com
src/conf/domain_conf.c                             |  3 +-
src/conf/domain_conf.h                             |  2 ++
src/qemu/qemu_capabilities.c                       | 18 +++++-----
src/qemu/qemu_capspriv.h                           |  4 ---
src/qemu/qemu_command.c                            | 42 +++++++++++-----------
.../ppc64-modern-bulk-result-live.xml              |  2 +-
.../ppc64-modern-individual-result-live.xml        |  2 +-
.../x86-modern-bulk-result-live.xml                |  2 +-
.../x86-modern-individual-add-result-live.xml      |  2 +-
.../x86-old-bulk-result-live.xml                   |  2 +-
tests/qemuxml2argvtest.c                           |  5 ---
11 files changed, 39 insertions(+), 45 deletions(-)
[libvirt] [PATCH 0/4] Fix hotplug after daemon restart
Posted by Ján Tomko 6 years, 4 months ago
The logic in virQEMUCapsHasPCIMultiBus cannot be reasonably fixed
for already running domains, since we dropped the MULTIBUS capability,
so only resort to calling it if the domain is using user aliases.

That way only hotplug on PPC machines other than pseries with QEMU < 2.0
(possibly older) that have a user alias on pci-root controller stays broken.

Ján Tomko (4):
  Move USER_ALIAS_PREFIX to the header file
  qemu: prefer the PCI bus alias from status XML
  virQEMUCapsHasPCIMultiBus: use def->os.arch
  virQEMUCapsHasPCIMultiBus: assume true if we have no version
    information

 src/conf/domain_conf.c                             |  3 +-
 src/conf/domain_conf.h                             |  2 ++
 src/qemu/qemu_capabilities.c                       | 18 +++++-----
 src/qemu/qemu_capspriv.h                           |  4 ---
 src/qemu/qemu_command.c                            | 42 +++++++++++-----------
 .../ppc64-modern-bulk-result-live.xml              |  2 +-
 .../ppc64-modern-individual-result-live.xml        |  2 +-
 .../x86-modern-bulk-result-live.xml                |  2 +-
 .../x86-modern-individual-add-result-live.xml      |  2 +-
 .../x86-old-bulk-result-live.xml                   |  2 +-
 tests/qemuxml2argvtest.c                           |  5 ---
 11 files changed, 39 insertions(+), 45 deletions(-)

-- 
2.13.6

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list