]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix logic for assigning PCI addresses to USB2 companion controllers
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 14 May 2012 10:16:22 +0000 (11:16 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 15 May 2012 16:07:34 +0000 (17:07 +0100)
commit1ebd52cb871f87b7868503b28448e96d59e41d63
treefbe95cbc0299758e1880020690b8be3c84000558
parent2c195fdbf3293792e39bc4f06755ae751025b0ea
Fix logic for assigning PCI addresses to USB2 companion controllers

Currently each USB2 companion controller gets put on a separate
PCI slot. Not only is this wasteful of PCI slots, but it is not
in compliance with the spec for USB2 controllers. The master
echi1 and all companion controllers should be in the same slot,
with echi1 in function 7, and uhci1-3 in functions 0-2 respectively.

* src/qemu/qemu_command.c: Special case handling of USB2 controllers
  to apply correct pci slot assignment
* tests/qemuxml2argvdata/qemuxml2argv-usb-ich9-ehci-addr.args,
  tests/qemuxml2argvdata/qemuxml2argv-usb-ich9-ehci-addr.xml: Expand
  test to cover automatic slot assignment
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-usb-ich9-ehci-addr.args
tests/qemuxml2argvdata/qemuxml2argv-usb-ich9-ehci-addr.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-usb-ich9-ehci-addr.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c