Skip to content

Add support for native QEMU for Windows (WSL)

Aleksey R. (aka EreTIk) requested to merge kITerE/redox:wsl_native_qemu into master

Problem: Windows users can successfully build OS using WSL. But inside the WSL, QEMU can only be launched without VGA and without hardware support of virtualization. An example:

make qemu audio=no vga=no

Solution: Run native Windows QEMU binary (%ProgramFiles%\qemu\qemu-system-x86_64.exe) with "-accel whpx" option. An example:

make qemu wsl_qemu="C:\Program Files\qemu\qemu-system-x86_64.exe"

TODOs:

  • detect native QEMU installation using "reg.exe query 'HKLM\Software\QEMU' /v Install_Dir /t REG_SZ" command.
  • QEMU is supported only version 6.x. It is possible to make support for versions 5.x

State: Ready for review

Edited by Aleksey R. (aka EreTIk)

Merge request reports