]> git.proxmox.com Git - qemu-server.git/commit
fix #2794: allow legacy IGD passthrough
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 18 Jun 2020 14:36:54 +0000 (16:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 25 Jun 2020 11:25:35 +0000 (13:25 +0200)
commit13d689792e6f5c724d9bc4ac6e4014095c1efc94
treed7490c22a8d929e686586030973f858a1c5ae0bb
parent74c17b7a23c8a953d1dcec9bd53449d71d88cd5d
fix #2794: allow legacy IGD passthrough

Legacy IGD passthrough requires address 00:1f.0 to not be assigned to
anything on QEMU startup (currently it's assigned to bridge pci.2).
Changing this in general would break live-migration, so introduce a new
hostpci parameter "legacy-igd", which if set to 1 will move that bridge
to be nested under bridge 1.

This is safe because:
* Bridge 1 is unconditionally created on i440fx, so nesting is ok
* Defaults are not changed, i.e. PCI layout only changes when the new
parameter is specified manually
* hostpci forbids migration anyway

Additionally, the PT device has to be assigned address 00:02.0 in the
guest as well, which is usually used for VGA assignment. Luckily, IGD PT
requires vga=none, so that is not an issue either.

See https://git.qemu.org/?p=qemu.git;a=blob;f=docs/igd-assign.txt

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/QemuServer.pm
PVE/QemuServer/PCI.pm