Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 843641 - app-emulation/qemu with display gtk flickers and errors
Summary: app-emulation/qemu with display gtk flickers and errors
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-11 01:21 UTC by Tromo Kratis
Modified: 2022-05-13 19:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tromo Kratis 2022-05-11 01:21:09 UTC
I run qemu built with SDL and GTK flags so obviously these were enabled for the command to work.
With this command (upstream wants the full command) 
qemu-system-x86_64 -nodefaults -no-fd-bootchk -no-user-config -no-hpet -enable-kvm -L /etc/bios -drive if=pflash,format=raw,readonly=on,file=/tmp/bios.2118 -rtc base=utc,clock=host,driftfix=slew -m 4G -object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on -numa node,memdev=mem -machine q35,accel=kvm,usb=off,vmport=off,kernel_irqchip=on -cpu Haswell-noTSX,+kvm-pv-unhalt,+kvmclock,+kvm-asyncpf,+kvm-steal-time,+kvm-pv-eoi,+kvmclock-stable-bit,+invtsc,vmware-cpuid-freq=on,kvm=on,vmx=on,vendor=GenuineIntel -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 -chardev socket,id=vhost0,path=/run/vfsd/root -device vhost-user-fs-pci,queue-size=1024,chardev=vhost0,tag=rootfs -chardev socket,id=vhost1,path=/run/vfsd/metc -device vhost-user-fs-pci,queue-size=1024,chardev=vhost1,tag=metcfs -kernel /lib/modules/current/../bootx64.efi -device virtio-gpu-gl -device virtio-balloon-pci,id=balloon0 -netdev user,id=vmnic,restrict=n -device virtio-net-pci,romfile=,netdev=vmnic -device virtio-rng-pci -device virtio-keyboard-pci -device virtio-tablet-pci -device ich9-intel-hda,msi=on,x-pcie-extcap-init=on -device hda-output -display sdl,gl=on -monitor none -serial mon:stdio -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent -parallel none

virtgl drivers works fine. 

Changing the command toL
qemu-system-x86_64 -nodefaults -no-fd-bootchk -no-user-config -no-hpet -enable-kvm -L /etc/bios -drive if=pflash,format=raw,readonly=on,file=/tmp/bios.2166 -rtc base=utc,clock=host,driftfix=slew -m 4G -object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on -numa node,memdev=mem -machine q35,accel=kvm,usb=off,vmport=off,kernel_irqchip=on -cpu Haswell-noTSX,+kvm-pv-unhalt,+kvmclock,+kvm-asyncpf,+kvm-steal-time,+kvm-pv-eoi,+kvmclock-stable-bit,+invtsc,vmware-cpuid-freq=on,kvm=on,vmx=on,vendor=GenuineIntel -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 -chardev socket,id=vhost0,path=/run/vfsd/root -device vhost-user-fs-pci,queue-size=1024,chardev=vhost0,tag=rootfs -chardev socket,id=vhost1,path=/run/vfsd/metc -device vhost-user-fs-pci,queue-size=1024,chardev=vhost1,tag=metcfs -kernel /lib/modules/current/../bootx64.efi -device virtio-gpu-gl -device virtio-balloon-pci,id=balloon0 -netdev user,id=vmnic,restrict=n -device virtio-net-pci,romfile=,netdev=vmnic -device virtio-rng-pci -device virtio-keyboard-pci -device virtio-tablet-pci -device ich9-intel-hda,msi=on,x-pcie-extcap-init=on -device hda-output -display gtk,gl=on -monitor none -serial mon:stdio -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent -parallel none

results in flickering diskplay and 1000s of error messagews:

(qemu:2168): Gdk-WARNING **: 03:19:28.005: eglMakeCurrent failed

(qemu:2168): Gdk-WARNING **: 03:19:28.011: eglMakeCurrent failed

(qemu:2168): Gdk-WARNING **: 03:19:28.013: eglMakeCurrent failed

(qemu:2168): Gdk-WARNING **: 03:19:28.028: eglMakeCurrent failed

...




Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2022-05-12 02:28:49 UTC
What's the difference between the 2 commands?