]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix qemuDomainSupportsPCI() for ARM machines of "virt" machinetype
authorLaine Stump <laine@laine.org>
Tue, 11 Aug 2015 18:56:21 +0000 (14:56 -0400)
committerLaine Stump <laine@laine.org>
Tue, 11 Aug 2015 20:11:05 +0000 (16:11 -0400)
commit9bd16ad3b4dbe4bf8301c2b60fe77c36aa9b4f15
tree3662f3f9dc2da08c53871024929054399d99daee
parentfbb27088eec1b54fcd5a0950b11c31d27a2598d4
qemu: fix qemuDomainSupportsPCI() for ARM machines of "virt" machinetype

Commit e8d5517 updated the domain post-parse to automatically add
pcie-root et al for certain ARM "virt" machinetypes, but didn't update
the function qemuDomainSupportsPCI() which is called later on when we
are auto-assigning PCI addresses and default settings for the PCI
controller <model> and <target> attributes. The result was that PCI
addresses weren't assigned, and the controllers didn't have their
attribute default values set, leading to an error when the domain was
started, e.g.:

  internal error: autogenerated dmi-to-pci-bridge options not set

This patch adds the same check made in the earlier patch to
qemuDomainSupportsPCI(), so that PCI address auto-assignment and
target/model default values will be set.
src/qemu/qemu_command.c
src/qemu/qemu_domain.c