]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add default USB controller in qemu post-parse callback
authorLaine Stump <laine@laine.org>
Fri, 2 Aug 2013 08:13:33 +0000 (04:13 -0400)
committerLaine Stump <laine@laine.org>
Sat, 3 Aug 2013 19:37:41 +0000 (15:37 -0400)
commitc66da9d224ffba1d972beaf049c00dbebda4e8ea
tree2dfd01048ffd47869b42008d2d8469bb9228310e
parent010065d70238dbb15849e0c1450648fb04355213
conf: add default USB controller in qemu post-parse callback

The parser shouldn't be doing arch-specific things like adding in
implicit controllers to the config. This should instead be done in the
hypervisor's post-parse callback.

This patch removes the auto-add of a usb controller from the domain
parser, and puts it into the qemu driver's post-parse callback (just
as is already done with the auto-add of the pci-root controller). In
the future, any machine/arch that shouldn't have a default usb
controller added should just set addDefaultUSB = false in this
function.

We've recently seen that q35 and ARMV7L domains shouldn't get a default USB
controller, so I've set addDefaultUSB to false for both of those.
src/conf/domain_conf.c
src/qemu/qemu_domain.c