From c50b722fcad5834cbdc3a9b733b9abeb967caf56 Mon Sep 17 00:00:00 2001 From: koniifer <koniifer@proton.me> Date: Fri, 31 Jan 2025 00:41:21 +0000 Subject: [PATCH] fix the fix --- repbuild/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/repbuild/src/main.rs b/repbuild/src/main.rs index 7ae36d7..7f7c5f8 100644 --- a/repbuild/src/main.rs +++ b/repbuild/src/main.rs @@ -411,6 +411,7 @@ fn run(release: bool, target: Target, do_accel: bool) -> Result<(), Error> { }; let (mut com, mut com2) = (Command::new(target_str), Command::new(target_str)); let ovmf_path = fetch_ovmf(target); + let cpu = "max"; #[cfg(target_arch = "x86_64")] let accel = if do_accel { let supported = String::from_utf8( @@ -429,8 +430,6 @@ fn run(release: bool, target: Target, do_accel: bool) -> Result<(), Error> { let vmx = cpuid.get_feature_info().unwrap().has_vmx(); let svm = cpuid.get_svm_info().is_some(); - let mut cpu = "max"; - if supported.contains("kvm") && (vmx || svm) { "accel=kvm" } else if cpuid