Skip to content

Commit

Permalink
test_qemu_fw: Enabled kvm to fix WinPE boot with smep,smap.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailKrichanov committed Mar 27, 2024
1 parent 87157a9 commit 0e9410d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_qemu_fw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 0e9410d

Please sign in to comment.