Skip to content

Commit

Permalink
create APs in order
Browse files Browse the repository at this point in the history
We don't want HV_X64_MSR_VP_INDEX to not contain the IDs in order.
  • Loading branch information
Freax13 committed Nov 13, 2024
1 parent 755b982 commit 1042a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/mushroom/src/insecure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ fn run_kernel_vcpu(
) -> JoinHandle<()> {
let supervisor_thread = std::thread::current();

let ap = vm.create_vcpu(i32::from(id)).unwrap();
std::thread::spawn(move || {
let ap = vm.create_vcpu(i32::from(id)).unwrap();
ap.set_cpuid(&cpuid_entries).unwrap();

let kvm_run = ap.get_kvm_run_block().unwrap();
Expand Down

0 comments on commit 1042a83

Please sign in to comment.