-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QEMU/WSL: Boot slows to a crawl when WHPX acceleration is enabled #7657
Comments
I'm seeing the same problem here. Tested with QEMU 6.0.0, 5.2.0 and 5.1.0. Windows version: Windows 10 21H1 (19043.1023) whpx.mp4 |
Works all right for me for Qemu 5.1.0, and 6.0.0 with the kernel-irqchip=off argument. Windows 10 20H2, Build 19042.985 without the kernel-irqchip=off argument, QEMU 6.0.0 hangs at
But I'm not seeing the sudden regression to 9600 Baud (or less) on the serial console with these args
Where the qemu-system-i386.exe is from this exact version: https://qemu.weilnetz.de/w64/2021/qemu-w64-setup-20210505.exe Boot Log
|
This is definitely weird, but if you enable tabs in QEMU's |
It gets even weirder: If I resize the QEMU window to about 50-60% of the size it also works while on the |
I don't think it's a QEMU 6 regression, I tried the latest 5.x with the same result. I'm on @ADKaster same Windows version, 20H2 19042.985 on a Core i9 10900k. WSL2 is running Arch Linux. |
@gunnarbeutner Yep I see that resize thing. If I have it the best fit size (ctrl + alt + 0) on my 2k monitor everything is fine, but zooming in 2x (ctrl + alt + +) causes it to freeze up. And resizing back causes normal behavior again. |
If someone wants to debug qemu with windbg to check what's going on, looks like it's possible to generate PDBs form the mingw dwarf. Directions are here: https://ourwindowsman.wordpress.com/2021/01/23/windows-qemu-and-windbg/ |
I can reproduce this as well. Windows 10 19043, Core i7-10875H, WSL 2 with Ubuntu 20.04, QEMU 6.0.0 from the weilnetz.de site. Same results - fast on serial0 or if I do Zoom to Fit and shrink down small (on a 4k 15" laptop monitor this is barely legible it's so tiny), but slows to a crawl if resized larger. Bummer, I was so excited when I finally found the env vars:
|
Yes, it's definitely something to do with 200% scaling, perhaps a GTK bug? As a quick workaround, changing the settings for |
Nice find! |
An even easier workaround is |
@kleinesfilmroellchen how was this addressed? were you unable to replicate? |
There are numerous workarounds listed, and newer QEMUs should be better at this. Only open a new issue if you have tried these and updated to the newest version. |
I'm using the recommended settings from the WSL documentation:
If I disable WHPX acceleration, everything works, if I enable it, as soon as the following message is printed in the console:
the boot process slows to a crawl, so much that following log messages are printed at ~10 characters per second, as if it were a very slow BBS modem. UHCI gets initialised, then E1000, then it seems to hang.
Using qemu 6.0.0 20210505
The text was updated successfully, but these errors were encountered: