Skip to content

Commit a2aab9f

Browse files
committed
fix: set highmem=off on QEMU 7.0 and earlier on aarch64
1 parent 68e8ccf commit a2aab9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

quickemu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,11 @@ function configure_cpu() {
348348
# https://qemu-project.gitlab.io/qemu/system/arm/virt.html
349349
case ${arch_host} in
350350
arm64|aarch64) CPU_MODEL="max"
351-
MACHINE_TYPE="virt,highmem=off";;
351+
MACHINE_TYPE="virt"
352+
# https://github.com/lima-vm/lima/pull/703
353+
if [ "${QEMU_VER_SHORT}" -le 70 ]; then
354+
MACHINE_TYPE+=",highmem=off"
355+
fi;;
352356
esac
353357
elif [ "${arch_vm}" != "${arch_host}" ]; then
354358
# If the architecture of the VM is different from the host, disable acceleration

0 commit comments

Comments
 (0)