]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: try to put ich9 sound device at 00:1B.0
authorLaine Stump <laine@laine.org>
Tue, 20 Sep 2016 17:12:55 +0000 (13:12 -0400)
committerLaine Stump <laine@laine.org>
Mon, 14 Nov 2016 19:23:01 +0000 (14:23 -0500)
commit8d873a5a471179fc7e9ccc178759611a51af8e0f
treeee13e05e9c9af1fea45b69d9805719e135dda2f3
parentd8bd8376698a79079f8f594cad7efed1ffa373ef
qemu: try to put ich9 sound device at 00:1B.0

Real Q35 hardware has an ICH9 chip that includes several integrated
devices at particular addresses (see the file docs/q35-chipset.cfg in
the qemu source). libvirt already attempts to put the first two sets
of ich9 USB2 controllers it finds at 00:1D.* and 00:1A.* to match the
real hardware. This patch does the same for the ich9 "HD audio"
device.

The main inspiration for this patch is that currently the *only*
device in a reasonable "workstation" type virtual machine config that
requires a legacy PCI slot is the audio device, Without this patch,
the standard Q35 machine created by virt-manager will have a
dmi-to-pci-bridge and a pci-bridge just for the sound device; with the
patch (and if you change the sound device model from the default
"ich6" to "ich9"), the machine definition constructed by virt-manager
has absolutely no legacy PCI controllers - any legacy PCI devices
(e.g. video and sound) are on pcie-root as integrated devices.
src/qemu/qemu_domain_address.c
tests/qemuxml2argvdata/qemuxml2argv-q35-virt-manager-basic.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-q35-virt-manager-basic.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/qemuxml2xmlout-q35-virt-manager-basic.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c