mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
Documentation+Meta: Automatically add disable_virtio on Windows
This commit is contained in:
parent
cc87bf46c1
commit
baf40ad96d
2 changed files with 1 additions and 4 deletions
|
@ -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: \
|
- 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'`
|
`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.
|
- `ninja run` as usual.
|
||||||
|
|
||||||
### Hardware acceleration
|
### Hardware acceleration
|
||||||
|
|
|
@ -53,6 +53,7 @@ if command -v wslpath >/dev/null; then
|
||||||
case "$SERENITY_QEMU_BIN" in
|
case "$SERENITY_QEMU_BIN" in
|
||||||
/mnt/c/*)
|
/mnt/c/*)
|
||||||
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max,vmx=off"
|
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max,vmx=off"
|
||||||
|
SERENITY_KERNEL_CMDLINE="$SERENITY_KERNEL_CMDLINE disable_virtio"
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue