fix(darwin): disable huge pages

This commit is contained in:
Martin Wimpress 2024-05-15 02:05:35 +01:00 committed by Martin Wimpress
parent a4818025d8
commit 6c07e3acdc
1 changed files with 6 additions and 1 deletions

View File

@ -297,7 +297,12 @@ function configure_cpu() {
qemu) CPU_MODEL="Penryn" qemu) CPU_MODEL="Penryn"
HYPERVISOR="${MANUFACTURER,,}";; HYPERVISOR="${MANUFACTURER,,}";;
*) CPU_MODEL="host" *) CPU_MODEL="host"
HYPERVISOR=""; # Disable huge pages
# - https://stackoverflow.com/questions/60231203/qemu-qcow2-mmu-gva-to-gpa-crash-in-mac-os-x
if [ "${OS_KERNEL}" == "Darwin" ]; then
CPU_MODEL+=",-pdpe1gb"
fi
HYPERVISOR="";;
esac esac
if [ -z "${HYPERVISOR}" ]; then if [ -z "${HYPERVISOR}" ]; then