Lines Matching refs:newcpu
46 spinup_ap_realmode(struct vmctx *ctx, int newcpu, uint64_t *rip)
60 error = vm_set_register(ctx, newcpu, VM_REG_GUEST_RIP, *rip);
63 error = vm_get_desc(ctx, newcpu, VM_REG_GUEST_CS, &desc_base,
68 error = vm_set_desc(ctx, newcpu, VM_REG_GUEST_CS,
73 error = vm_set_register(ctx, newcpu, VM_REG_GUEST_CS, cs);
78 spinup_ap(struct vmctx *ctx, int vcpu, int newcpu, uint64_t rip)
82 assert(newcpu != 0);
83 assert(newcpu < guest_ncpus);
85 error = vcpu_reset(ctx, newcpu);
88 fbsdrun_set_capabilities(ctx, newcpu);
91 * Enable the 'unrestricted guest' mode for 'newcpu'.
96 error = vm_set_capability(ctx, newcpu, VM_CAP_UNRESTRICTED_GUEST, 1);
99 spinup_ap_realmode(ctx, newcpu, &rip);
101 fbsdrun_addcpu(ctx, vcpu, newcpu, rip);
103 return (newcpu);