From baf40ad96d88ed4158259a16f53ef544290c5232 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 10 Jul 2021 14:14:12 +0200 Subject: [PATCH] Documentation+Meta: Automatically add disable_virtio on Windows --- Documentation/BuildInstructionsWindows.md | 4 ---- Meta/run.sh | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Documentation/BuildInstructionsWindows.md b/Documentation/BuildInstructionsWindows.md index 812ff9f73d..f191209d5c 100644 --- a/Documentation/BuildInstructionsWindows.md +++ b/Documentation/BuildInstructionsWindows.md @@ -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 diff --git a/Meta/run.sh b/Meta/run.sh index 3f1696eea9..f7d666cc19 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -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