Glitch screen on i915 driver loads in UEFI guest IGD Passthrough
## Host environment * Operating system: Archlinux * OS/kernel version: Linux arch 7.0.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 02 Jun 2026 18:26:58 +0000 x86_64 GNU/Linux * Architecture: x86 * QEMU flavor: qemu-system-x86_64 * QEMU version: QEMU emulator version 11.0.1 * QEMU command line: `qemu-system-x86_64 \` `-m 8G \` `-smp 4 \` `-cpu host \` `-vga none \` `-enable-kvm \` `-device vfio-pci,host=00:02.0,id=hostdev0,addr=2.0,x-igd-legacy-mode=off,x-igd-lpc=on,romfile=efi_oprom.rom \` `-drive file=/home/maan/QemuVMs/Arch.raw,format=raw,if=virtio \` `-bios /usr/share/ovmf/x64/OVMF.4m.fd \` `-nodefaults` * How to reproduce: 1. Set `Launch Video OpROM = legacy` in host bios. 2. Add `intel_iommu=on iommu=pt` host grub cmdline. 3. Unbind iGPU from Host `echo 0000:00:02.0 > /sys/bus/pci/devices/0000:00:02.0/driver/unbind` then `echo 8086 0412 > /sys/bus/pci/drivers/vfio-pci/new_id` 4. Execute * `qemu-system-x86_64 \` `-m 8G \` `-smp 4 \` `-cpu host \` `-vga none \` `-enable-kvm \` `-device vfio-pci,host=00:02.0,id=hostdev0,addr=2.0,x-igd-legacy-mode=off,x-igd-lpc=on,romfile=efi_oprom.rom \` `-drive file=/home/maan/QemuVMs/Arch.raw,format=raw,if=virtio \` `-bios /usr/share/ovmf/x64/OVMF.4m.fd \` `-nodefaults` * Description: While playing aroung IGD passthrough (i5 4460 CPU/HD 4600 iGPU) for UEFI guest i noticed glitch screen once `i915` driver is loaded nothing is usable but grub and all booting process works as normal, (Windows, MacOS vm remains uneffected) so far only workaround to fix this issue is to change `Launch Video OpROM = EFI` in host bios while there are laptops and motherbords that won't allow to make this change so is there any workaround that canbe implemented to fix this problem. i915 dmesg log from guest with `Launch Video OpROM = Legacy` in host bios [i915-dmesg-legacy.txt](/uploads/7a7a82a3cf0f31114a829d9dc4a4e2e4/i915-dmesg-legacy.txt) i915 dmesg log from guest with `Launch Video OpROM = EFI` in host bios [i915-efi-dmesg.txt](/uploads/559efc1919c739625d05bc135ad92f76/i915-efi-dmesg.txt)
issue