Skip to content

Commit d4b33c2

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

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

tool/microkit/src/main.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2596,6 +2596,22 @@ fn build_system(
25962596
tcb: pd_tcb_objs[pd_idx].cap_addr,
25972597
},
25982598
));
2599+
if let Some(pd_vm) = &pd.virtual_machine {
2600+
for (vm_idx, vm) in virtual_machines.iter().enumerate() {
2601+
if pd_vm.name == vm.name {
2602+
for vcpu_idx in 0..vm.vcpus.len() {
2603+
system_invocations.push(Invocation::new(
2604+
config,
2605+
InvocationArgs::DomainSetSet {
2606+
domain_set: DOMAIN_CAP_ADDRESS,
2607+
domain: domain_id as u8,
2608+
tcb: vcpu_tcb_objs[vm_idx + vcpu_idx].cap_addr,
2609+
},
2610+
));
2611+
}
2612+
}
2613+
}
2614+
}
25992615
}
26002616
}
26012617

0 commit comments

Comments
 (0)