From: Luca Boccassi Date: Mon, 7 Aug 2023 01:29:52 +0000 (+0100) Subject: qemu: do not enable kvm when booting on non-native arch X-Git-Tag: v15~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30fd0ff5114d30ae382b6a776be370c330d6890b;p=thirdparty%2Fmkosi.git qemu: do not enable kvm when booting on non-native arch kvm is only supported on the native architecture, so skip it when booting a non-native one (eg: aarch64 on x86_64) --- diff --git a/mkosi/qemu.py b/mkosi/qemu.py index 1bae0e606..eafe610ad 100644 --- a/mkosi/qemu.py +++ b/mkosi/qemu.py @@ -207,7 +207,7 @@ def copy_ephemeral(config: MkosiConfig, src: Path) -> Iterator[Path]: def run_qemu(args: MkosiArgs, config: MkosiConfig) -> None: accel = "tcg" - if config.qemu_kvm == ConfigFeature.enabled or (config.qemu_kvm == ConfigFeature.auto and qemu_check_kvm_support()): + if config.qemu_kvm == ConfigFeature.enabled or (config.qemu_kvm == ConfigFeature.auto and config.architecture.is_native() and qemu_check_kvm_support()): accel = "kvm" firmware, fw_supports_sb = find_qemu_firmware(config)