Skip to content

Commit fe32cd8

Browse files
FuraoIvan-Velickovic
authored andcommitted
tool: Set VM VCPU TCB domain to its PDs domain
1 parent b90a793 commit fe32cd8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tool/microkit/src/main.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,6 +2683,22 @@ fn build_system(
26832683
tcb: pd_tcb_objs[pd_idx].cap_addr,
26842684
},
26852685
));
2686+
if let Some(pd_vm) = &pd.virtual_machine {
2687+
for (vm_idx, vm) in virtual_machines.iter().enumerate() {
2688+
if pd_vm.name == vm.name {
2689+
for vcpu_idx in 0..vm.vcpus.len() {
2690+
system_invocations.push(Invocation::new(
2691+
config,
2692+
InvocationArgs::DomainSetSet {
2693+
domain_set: DOMAIN_CAP_ADDRESS,
2694+
domain: domain_id as u8,
2695+
tcb: vcpu_tcb_objs[vm_idx + vcpu_idx].cap_addr,
2696+
},
2697+
));
2698+
}
2699+
}
2700+
}
2701+
}
26862702
}
26872703
}
26882704

0 commit comments

Comments
 (0)