Windows: virtio-gpu-gl with -display gtk,gl=on renders transparent background and crashes during Linux boot

Host environment

  • Operating system: Windows 11 29613.1000
  • OS/kernel version: 10.0.29613.1000
  • Architecture: x86_54
  • QEMU flavor: qemu-system-x86_64
  • QEMU version: v11.0.0-12631-g54e84cdc7a
  • QEMU command line:
    qemu-system-x86_64 -display gtk,gl=on -accel whpx -vga none -device virtio-gpu-gl -drive if=pflash,read-only=true,file=.\edk2-x86_64-code.fd -serial none

Emulated/Virtualized environment

  • Operating system: Fedora 44 KDE
  • OS/kernel version: Not sure,I can't boot to CD-ROM to install
  • Architecture: x86_64

Description of problem

Steps to reproduce

1.Run QEMU with the arguments.The EFI Display and GRUB will have transparent background 2.Boot into Fedora KDE 44, QEMU crashes during early Linux boot, before reaching the Fedora KDE installer.

Additional information

The transparent background: ảnh

Replacing -device virtio-gpu-gl with -device virtio-gpu completely avoids the issue.

Replacing -display gtk,gl=on with -display sdl,gl=on also avoids the issue.

My full launch command line:

qemu-system-x86_64 `
  -accel whpx `
  -machine q35 `
  -m 4G `
  -display gtk,gl=on `
  -d guest_errors `
  -D qemu.log `
  -vga none `
  -audiodev dsound,id=snd0 `
  -netdev tap,id=net0,ifname=FedoraVM `
  -blockdev driver=qcow2,node-name=disk0,file.driver=file,file.filename=disk.qcow2 `
  -blockdev driver=raw,read-only=on,node-name=cdrom0,file.driver=file,file.filename=fedora.iso `
  -drive if=pflash,readonly=on,file=edk2-x86_64-code.fd `
  -device uefi-vars-x64,jsonfile=efi-vars.json `
  -device virtio-blk,packed=on,drive=disk0 `
  -device virtio-blk,packed=on,drive=cdrom0 `
  -device virtio-net,packed=on,netdev=net0 `
  -device virtio-sound,packed=on,audiodev=snd0 `
  -device virtio-serial,packed=on `
  -device virtio-balloon,packed=on `
  -device virtio-rng,packed=on `
  -device virtio-keyboard,packed=on `
  -device virtio-tablet,packed=on `
  -device virtio-gpu-gl,packed=on `
  -serial none `
  -parallel none `
  -chardev qemu-vdagent,id=vdagent0,name=vdagent,clipboard=on,mouse=on `
  -device virtserialport,chardev=vdagent0,name=com.redhat.spice.0
Edited by oreactko