Skip to content

Commit 1b0dfed

Browse files
committed
fix: do not set smm or vmport on qemu-system-aarch64; are not supported
1 parent a2aab9f commit 1b0dfed

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

quickemu

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,11 @@ function configure_cpu() {
397397
fi
398398
fi
399399

400+
# smm and vmport are not available on qemu-system-aarch64
401+
if [ "${ARCH_QEMU}" == "x86_64" ]; then
402+
MACHINE_TYPE+=",smm=${SMM},vmport=off"
403+
fi
404+
400405
case ${guest_os} in
401406
batocera|freedos|haiku|solaris) MACHINE_TYPE="pc";;
402407
kolibrios|reactos)
@@ -1181,7 +1186,7 @@ function vm_boot() {
11811186
args+=(-name ${VMNAME},process=${VMNAME})
11821187
fi
11831188
# shellcheck disable=SC2054,SC2206,SC2140
1184-
args+=(-machine ${MACHINE_TYPE},smm=${SMM},vmport=off,accel=${QEMU_ACCEL} ${GUEST_TWEAKS}
1189+
args+=(-machine ${MACHINE_TYPE},accel=${QEMU_ACCEL} ${GUEST_TWEAKS}
11851190
${CPU} ${SMP}
11861191
-m ${RAM_VM} ${BALLOON}
11871192
-rtc base=localtime,clock=host,driftfix=${driftfix}

0 commit comments

Comments
 (0)