From 0e9410d19b3e597a9841cff427b8cead9ea3fbf2 Mon Sep 17 00:00:00 2001 From: Mikhail Krichanov Date: Wed, 27 Mar 2024 09:35:40 +0300 Subject: [PATCH] test_qemu_fw: Enabled kvm to fix WinPE boot with smep,smap. --- test_qemu_fw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_qemu_fw.py b/test_qemu_fw.py index ba99f8e..405b1d9 100755 --- a/test_qemu_fw.py +++ b/test_qemu_fw.py @@ -53,7 +53,7 @@ def test_firmware(fw_path: str, boot_drive_path: str, expected_string: str, time logging.error("Can't retrieve QEMU version!") return False - qemu_x86_runner = f"qemu-system-x86_64 {'-enable-kvm ' if qemu_version < (6, 2, 0) else ''}" + qemu_x86_runner = f"qemu-system-x86_64 -enable-kvm" qemu_arm_runner = 'qemu-system-arm ' qemu_arm64_runner = 'qemu-system-aarch64 ' machine_string_x86 = f" -cpu Penryn,+smep,+smap{',+rdrand' if rdrand else ''} -smp 2 -machine q35 -m 2048 "