Choose -cpu max by default master
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 9 Jan 2025 14:39:34 +0000 (09:39 -0500)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 9 Jan 2025 14:58:10 +0000 (14:58 +0000)
commit1d48b90c2119ac59fdc04e16200b9502b8d835f5
tree0d78a02e31413f213f0c0131f5853580eca524d8
parente0cd93ad3979388db733852df6d1cdb60f3f931a
Choose -cpu max by default

You must set -cpu to something on RHEL 10 with TCG since the kernel on
that platform now requires x86_64-v3.  Choosing a good default is
difficult.  Use -cpu max as that was supposed to fix this, although in
practice it doesn't work very reliably.

This is likely a temporary solution.  More reliable/permanent
solutions include:

 - Allowing the user to set the default CPU at configure time.

 - A large case statement that tries to get it right for every
   possible combination of platform/architecture/KVM/...

 - Fixing -cpu max in qemu
src/qemu-sanity-check.in