]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: only check for PIIX3-specific device addrs on pc-* machinetypes
authorLaine Stump <laine@laine.org>
Thu, 18 Jul 2013 19:39:00 +0000 (15:39 -0400)
committerLaine Stump <laine@laine.org>
Wed, 24 Jul 2013 10:29:23 +0000 (06:29 -0400)
commitfcbfd584294bf49e69dc89e1f54c95c289cf00f0
treeed3a6d3167c889967a148db5a87d4037ae76b9fc
parent23cc5352202a944a14f75f3cfe16045ebe396263
qemu: only check for PIIX3-specific device addrs on pc-* machinetypes

The implicit IDE, USB, and video controllers provided by the PIIX3
chipset in the pc-* machinetypes are not present on other
machinetypes, so we shouldn't be doing the special checking for
them. This patch places those validation checks into a separate
function that is only called for machine types that have a PIIX3 chip
(which happens to be the i440fx-based pc-* machine types).

One qemuxml2argv test data file had to be changed - the
pseries-usb-multi test had included a piix3-usb-uhci device, which was
being placed at a specific address, and also had slot 2 auto reserved
for a video device, but the pseries virtual machine doesn't actually
have a PIIX3 chip, so even if there was a piix3-usb-uhci driver for
it, the device wouldn't need to reside at slot 1 function 2. I just
changed the .argv file to have the generic slot info for the two
devices that results when the special PIIX3 code isn't executed.
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-pseries-usb-multi.args