10.04.2025 12:54, Cong Liu пишет: > I discovered that on an ARM64 environment, the 'virtio-gpu: Support > asynchronous fencing' patch causes the virtual machine GUI to fail to > display. Rolling back this patch and using virgl allows the virtual machine > to start normally. When the VM screen is black, I can see some errors in > QEMU. I used QEMU's -serial stdio to enter the virtual machine's command line > console but didn't see any errors inside the VM - the graphical interface > seems to be stuck. I would greatly appreciate any suggestions regarding > effective troubleshooting methods or specific areas I should investigate to > resolve this issue. > > Here's my software and hardware environment: > - host and guest are ubuntu 24.04 > - QEMU: https://gitlab.freedesktop.org/digetx/qemu.git native-context-v11 > branch > - virglrender: latest main branch 08eb12d00711370002e8f8fa6d620df9b79f9e27 > - Mesa: Mesa 25.0~git2504031308.ff386e~oibaf~n (git-ff386eb 2025-04-03 > noble-oibaf-ppa) > - Kernel: Linux d3000 6.14.1-061401-generic #202504071048 > - GPU: Radeon RX 6600/6600 XT/6600M > - CPU: phytium D3000 aarch64 > > Here's the command I'm using to run the virtual machine, which displays a > black frame with "Display output is not active" and fails to start the > graphical interface normally: > > phytium@d3000:~/working/qemu$ /usr/local/bin/qemu-system-aarch64 > --machine virt,accel=kvm -cpu host -smp 4 -m 4G -drive > file=/home/phytium/working/ubuntu24.04-aarch64-native-context,format=raw,if=virtio > -bios /usr/share/AAVMF/AAVMF_CODE.ms.fd -netdev user,id=net0 -device > virtio-net-pci,netdev=net0 -device virtio-gpu-gl -display > gtk,gl=on,show-cursor=on -device usb-ehci,id=usb -device usb-mouse,bus=usb.0 > -device usb-kbd,bus=usb.0 > > (qemu:46029): Gdk-WARNING **: 16:43:53.715: eglMakeCurrent failed > (qemu:46029): Gdk-WARNING **: 16:43:53.715: eglMakeCurrent failed > (qemu:46029): Gdk-WARNING **: 16:43:53.715: eglMakeCurrent failed > (qemu:46029): Gdk-WARNING **: 16:43:53.715: eglMakeCurrent failed > (qemu:46029): Gdk-WARNING **: 16:43:53.716: eglMakeCurrent failed > > When using SDL, the error messages are slightly different: > > phytium@d3000:~/working/qemu$ /usr/local/bin/qemu-system-aarch64 > --machine virt,accel=kvm -cpu host -smp 4 -m 4G -drive > file=/home/phytium/working/ubuntu24.04-aarch64-native-context,format=raw,if=virtio > -bios /usr/share/AAVMF/AAVMF_CODE.ms.fd -netdev user,id=net0 -device > virtio-net-pci,netdev=net0 -device virtio-gpu-gl -display > sdl,gl=on,show-cursor=on -device usb-ehci,id=usb -device usb-mouse,bus=usb.0 > -device usb-kbd,bus=usb.0 > > vrend_renderer_fill_caps: Entering with stale GL error: 1286 >
Hi, 1. Please make sure that you're not only building QEMU against your virglrenderer version, but also setting LD_LIBRARY_PATH properly at runtime. Best to remove system version of virglrenderer if unsure, 2. Can you reproduce this problem using tcg instead of kvm? -- Best regards, Dmitry