verbose=no
timeout=10m
accel=kvm:tcg
-cpu=
memory=768
console=ttyS0
machine=
-# Both libguestfs and virt-manager choose cpu=host when we think that
-# KVM is available, and default otherwise. Although testing for KVM
-# is hairy, I found that on aarch64 it can fail unless we choose
-# cpu=host for KVM.
-if test -r /dev/kvm; then
- cpu=host
-fi
+# Choosing a good CPU default is a minefield. Ideally '-cpu max' is
+# supposed to choose the best CPU type, but it notably fails on RISC-V
+# (not supported) and x86_64+TCG (enables LA57 which TCG does not
+# emulate). Default minimum CPU will not work on RHEL 10, since that
+# requires at least x86_64-v3.
+cpu=max
# Default machine and CPU type depends on arch. You can override this
# using -m|--machine and --cpu options.
machine=virt ;;
aarch*)
console=ttyAMA0
- if [ "$cpu" = "" ]; then cpu=cortex-a57; fi
machine=virt ;;
s390*)
console=ttysclp0 ;;