mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 00:51:33 +00:00
Meta: Re-enable automatic virtualization detection on Windows
Before, we wouldn't enable virtualization on Windows anymore unless SERENITY_VIRTUALIZATION_SUPPORT was set explicitly. As far as we know, there's no automatic way of detecting whether WHPX is enabled or not. So we'll just enable virtualization on Windows by default, and if that doesn't work the user can still disable it manually with SERENITY_VIRTUALIZATION_SUPPORT=0.
This commit is contained in:
parent
64c66e26f5
commit
a67bbf1ac4
|
@ -22,6 +22,7 @@ SCRIPT_DIR="$(dirname "${0}")"
|
|||
if [ -z ${SERENITY_VIRTUALIZATION_SUPPORT+x} ]; then
|
||||
VIRTUALIZATION_SUPPORT="0"
|
||||
[ -e /dev/kvm ] && [ -r /dev/kvm ] && [ -w /dev/kvm ] && [ "$SERENITY_ARCH" != "aarch64" ] && [ "$(uname -m)" != "aarch64" ] && VIRTUALIZATION_SUPPORT="1"
|
||||
command -v wslpath >/dev/null && VIRTUALIZATION_SUPPORT="1"
|
||||
else
|
||||
VIRTUALIZATION_SUPPORT="$SERENITY_VIRTUALIZATION_SUPPORT"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue