From 94bd74d0bbc8da23f683d345ed49943538e7ed80 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 8 Jan 2026 17:14:56 +0200 Subject: [PATCH] BuildSystem: Update qemu script Default to intel-hda instead of ac97 for audio If we are accelerating with kvm, use host cpu and disable migratable to allow invariant TSC --- script/qemu.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/script/qemu.sh b/script/qemu.sh index 0422a79e..6798c200 100755 --- a/script/qemu.sh +++ b/script/qemu.sh @@ -34,10 +34,16 @@ NET_ARGS="-device e1000e,netdev=net $NET_ARGS" USB_ARGS='-device qemu-xhci -device usb-kbd,port=1 -device usb-hub,port=2 -device usb-tablet,port=2.1' -SOUND_ARGS='-device ac97' +#SOUND_ARGS='-device ac97' +SOUND_ARGS='-device intel-hda -device hda-output' + +if [[ $@ == *"-accel kvm"* ]]; then + CPU_ARGS='-cpu host,migratable=off' +fi qemu-system-$QEMU_ARCH \ -m 1G -smp 4 \ + $CPU_ARGS \ $BIOS_ARGS \ $USB_ARGS \ $DISK_ARGS \