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
This commit is contained in:
Bananymous 2026-01-08 17:14:56 +02:00
parent b2d8199480
commit 94bd74d0bb
1 changed files with 7 additions and 1 deletions

View File

@ -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' 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 \ qemu-system-$QEMU_ARCH \
-m 1G -smp 4 \ -m 1G -smp 4 \
$CPU_ARGS \
$BIOS_ARGS \ $BIOS_ARGS \
$USB_ARGS \ $USB_ARGS \
$DISK_ARGS \ $DISK_ARGS \