Documentation+Meta: Automatically add disable_virtio on Windows

This commit is contained in:
Gunnar Beutner 2021-07-10 14:14:12 +02:00
parent cc87bf46c1
commit baf40ad96d
Notes: sideshowbarker 2024-07-18 09:22:33 +09:00
2 changed files with 1 additions and 4 deletions

View file

@ -30,10 +30,6 @@ By default this will be located at `/mnt/c/Program Files/qemu/qemu-system-x86_64
- Set the `SERENITY_QEMU_BIN` environment variable to the location above. For example: \
`export SERENITY_QEMU_BIN='/mnt/c/Program Files/qemu/qemu-system-x86_64.exe'`
- Set the `SERENITY_KERNEL_CMDLINE` environment variable to disable VirtIO support (Because it is currently broken on
native windows QEMU):
`export SERENITY_KERNEL_CMDLINE="disable_virtio"`
- `ninja run` as usual.
### Hardware acceleration

View file

@ -53,6 +53,7 @@ if command -v wslpath >/dev/null; then
case "$SERENITY_QEMU_BIN" in
/mnt/c/*)
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max,vmx=off"
SERENITY_KERNEL_CMDLINE="$SERENITY_KERNEL_CMDLINE disable_virtio"
esac
fi