]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: fix exceptions in qemuAssignDeviceControllerAlias
authorLaine Stump <laine@laine.org>
Tue, 12 May 2015 00:51:52 +0000 (20:51 -0400)
committerLaine Stump <laine@laine.org>
Fri, 15 May 2015 19:36:21 +0000 (15:36 -0400)
commit75cd7d9b05492dff42fc5519ed04b56af7ac4409
treee79c973df7cd346c2a6788c549e079f1d953d094
parenta3dfaf1272f57453c7c4f3924c2ce60dbd6de4bb
qemu: fix exceptions in qemuAssignDeviceControllerAlias

There are a few extra exceptions that weren't being accounted for when
creating the alias for a controller. This resulted in 1) incorrect
status XML, and 2) exceptions/printfs of what *should* have been
directly available in the controller alias when constructing device
commandline arguments:

1) The primary (and only) IDE controller on a 440FX machinetype is
hardcoded to be "ide" in qemu.

2) The primary SATA controller on a 440FX machinetype is also
hardcoded to be "ide" in qemu.

3) On machinetypes that don't support multiple PCI buses, the PCI bus
is hardcoded in qemu to have the name "pci".

4) The first usb master controller is "usb", all others are the normal
"usb%d". (note that usb controllers that are not a "master" will have
the same index, and thus alias, as the master).

We needed to pass in the full domainDef and qemuCaps in order to
properly make the decisions about these exceptions.
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_hotplug.c