Legacy IGD passthrough in QEMU 5 disabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
High
|
Thomas Huth |
Bug Description
Bug with tag v5.0.0, or commit fdd76fecdde1ad4
As of QEMU 5 Legacy IGD PT is no longer working.
Host is a Xeon E3-1226 v3 and my method to test is to run the following:
./qemu-
-device 'pci-bridge,
-device 'vfio-pci,
-L '/usr/share/kvm' \
-nographic \
-vga none \
-nodefaults
in the hope of seeing a "IGD device 0000:00:02.0 cannot support legacy mode due to existing devices at address 1f.0" error.
The culprit appears to be this commit:
https:/
Specifically the following block in pci-quirks.c:
#ifdef CONFIG_VFIO_IGD
vfio_
#endif
as the kconfig variable CONFIG_VFIO_IGD doesn't appear to be available outside of makefiles as described here: https:/
I first spotted this in Proxmox, but have confirmed the bug by building QEMU sources.
Changed in qemu: | |
importance: | Undecided → High |
status: | New → Confirmed |
assignee: | nobody → Thomas Huth (th-huth) |
Changed in qemu: | |
status: | Fix Committed → Fix Released |
Hi! That info in kconfig.html is not up to date anymore, we are generating now #defines for the Kconfig switches. And in my build tree, I can see:
$ grep CONFIG_VFIO_IGD *-softmmu/*.h softmmu/ config- devices. h:#define CONFIG_VFIO_IGD 1
x86_64-
... what's missing in that file is simply a "#include "config-devices.h" ... sorry, that fell somehow through the cracks. I'll prepare a patch for that.