mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 17:30:17 +00:00
dev: add support for automatic hypervisor.framework usage on macOS
This commit is contained in:
@@ -41,3 +41,8 @@ if [ -z "${QEMU_ACCEL}" ] && [ "${TARGET_ARCH}" = "${HOST_ARCH}" ] &&
|
||||
grep -E '^flags.*:.+ vmx .*' /proc/cpuinfo >/dev/null; then
|
||||
QEMU_ACCEL="kvm"
|
||||
fi
|
||||
|
||||
if [ "$(uname)" = "Darwin" ] && [ "${TARGET_ARCH}" = "${HOST_ARCH}" ] &&
|
||||
[ "$(sysctl -n kern.hv_support 2>&1 || true)" = "1" ]; then
|
||||
QEMU_ACCEL="hvf"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user