]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: define virDomainDevAddUSBController()
authorLaine Stump <laine@laine.org>
Thu, 5 Nov 2015 20:16:50 +0000 (15:16 -0500)
committerLaine Stump <laine@laine.org>
Mon, 11 Jan 2016 18:16:51 +0000 (13:16 -0500)
commit8ebca27bb7391dc0dd629eab28fff96164ed2933
tree679ded640410ff020282421d3b827b81f290c709
parented64d92beac1070eaa632f0213a738754c4b8a74
qemu: define virDomainDevAddUSBController()

This new function will add a single controller of the given model,
except the case of ich9-usb-ehci1 (the master controller for a USB2
controller set) in which case a set of related controllers will be
added (EHCI1, UHCI1, UHCI2, UHCI3). These controllers will not be
given PCI addresses, but should be otherwise ready to use.

"-1" is allowed for controller model, and means "default for this
machinetype". This matches the existing practice in
qemuDomainDefPostParse(), which always adds the default controller
with model = -1, and relies on the commandline builder to set a model
(that is wrong, but will be fixed later).
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms