Skip to content

Commit

Permalink
fix: do not set smm or vmport on qemu-system-aarch64; are not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed May 25, 2024
1 parent a2aab9f commit 1b0dfed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,11 @@ function configure_cpu() {
fi
fi

# smm and vmport are not available on qemu-system-aarch64
if [ "${ARCH_QEMU}" == "x86_64" ]; then
MACHINE_TYPE+=",smm=${SMM},vmport=off"
fi

case ${guest_os} in
batocera|freedos|haiku|solaris) MACHINE_TYPE="pc";;
kolibrios|reactos)
Expand Down Expand Up @@ -1181,7 +1186,7 @@ function vm_boot() {
args+=(-name ${VMNAME},process=${VMNAME})
fi
# shellcheck disable=SC2054,SC2206,SC2140
args+=(-machine ${MACHINE_TYPE},smm=${SMM},vmport=off,accel=${QEMU_ACCEL} ${GUEST_TWEAKS}
args+=(-machine ${MACHINE_TYPE},accel=${QEMU_ACCEL} ${GUEST_TWEAKS}
${CPU} ${SMP}
-m ${RAM_VM} ${BALLOON}
-rtc base=localtime,clock=host,driftfix=${driftfix}
Expand Down

0 comments on commit 1b0dfed

Please sign in to comment.