Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions libsel4vm/src/arch/arm/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,5 @@ int vm_create_vcpu_arch(vm_t *vm, vm_vcpu_t *vcpu)
}
#endif /* CONFIG_MAX_NUM_NODES > 1 */

#ifdef CONFIG_DEBUG_BUILD
char vcpu_name[32];
snprintf(vcpu_name, sizeof(vcpu_name), "%s:%d", vm->vm_name, vcpu->vcpu_id);
seL4_DebugNameThread(vm_get_vcpu_tcb(vcpu), vcpu_name);
#endif

return err;
}
5 changes: 5 additions & 0 deletions libsel4vm/src/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ vm_vcpu_t *vm_create_vcpu(vm_t *vm, int priority)
vcpu_new->target_cpu = -1;
err = vm_create_vcpu_arch(vm, vcpu_new);
assert(!err);
#ifdef CONFIG_DEBUG_BUILD
char vcpu_name[32];
snprintf(vcpu_name, sizeof(vcpu_name), "%s:%d", vm->vm_name, vcpu_new->vcpu_id);
seL4_DebugNameThread(vm_get_vcpu_tcb(vcpu_new), vcpu_name);
#endif
vm->vcpus[vm->num_vcpus] = vcpu_new;
vm->num_vcpus++;
return vcpu_new;
Expand Down