qemu_amd64.sh Fix dont enable KVM accel when --debug is present
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 5m49s
Build documentation / build-and-deploy (push) Successful in 2m44s

This commit is contained in:
2026-04-01 12:04:53 +02:00
parent eeb120bc38
commit d8f2f033d2

View File

@@ -5,6 +5,7 @@ set -x
POSITIONAL_ARGS=()
QEMU_EXTRA=""
ENABLE_KVM=1
while [[ $# -gt 0 ]]; do
case $1 in
@@ -24,6 +25,7 @@ while [[ $# -gt 0 ]]; do
;;
--debug)
QEMU_EXTRA+=" -s -S "
ENABLE_KVM=0
shift
;;
--uefi)
@@ -38,5 +40,7 @@ while [[ $# -gt 0 ]]; do
esac
done
qemu-system-x86_64 -M pc -m 4G -serial stdio -enable-kvm \
-cdrom mop3.iso -smp 4 -boot d $QEMU_EXTRA "${POSITIONAL_ARGS[@]}"
[ "$ENABLE_KVM" -eq 1 ] && KVM_FLAG="-enable-kvm" || KVM_FLAG=""
qemu-system-x86_64 -M pc -m 4G -serial stdio $KVM_FLAG \
-cdrom mop3.iso -smp 1 -boot d $QEMU_EXTRA "${POSITIONAL_ARGS[@]}"