mkosi currently calls qemu with `-cpu max`. This enables all features
supported by the accelerator, which could be less than the ones
supported by the host.
Switch to the default `-cpu host` and keep max only when using binary
translation.
accel += ",device=/dev/fdset/1"
else:
accel = "tcg"
+ cmdline += ["-cpu", "max"]
cmdline += ["-accel", accel]
index = list(qemu_device_fds.keys()).index(QemuDeviceNode.vhost_vsock)
cmdline += ["-device", f"vhost-vsock-pci,guest-cid={cid},vhostfd={SD_LISTEN_FDS_START + index}"]
- cmdline += ["-cpu", "max"]
-
if config.qemu_gui:
if config.architecture.is_arm_variant():
cmdline += ["-device", "virtio-gpu-pci"]