Searched refs:newcpu (Results 1 - 5 of 5) sorted by relevance

/freebsd-12-stable/usr.sbin/bhyve/
H A Dspinup_ap.c48 spinup_ap_realmode(struct vmctx *ctx, int newcpu, uint64_t *rip) argument
62 error = vm_set_register(ctx, newcpu, VM_REG_GUEST_RIP, *rip);
65 error = vm_get_desc(ctx, newcpu, VM_REG_GUEST_CS, &desc_base,
70 error = vm_set_desc(ctx, newcpu, VM_REG_GUEST_CS,
75 error = vm_set_register(ctx, newcpu, VM_REG_GUEST_CS, cs);
80 spinup_ap(struct vmctx *ctx, int vcpu, int newcpu, uint64_t rip) argument
84 assert(newcpu != 0);
85 assert(newcpu < guest_ncpus);
87 error = vcpu_reset(ctx, newcpu);
90 fbsdrun_set_capabilities(ctx, newcpu);
[all...]
H A Dspinup_ap.h34 int spinup_ap(struct vmctx *ctx, int vcpu, int newcpu, uint64_t rip);
H A Dbhyverun.h46 void fbsdrun_addcpu(struct vmctx *ctx, int fromcpu, int newcpu, uint64_t rip);
H A Dbhyverun.c435 fbsdrun_addcpu(struct vmctx *ctx, int fromcpu, int newcpu, uint64_t rip) argument
442 * The 'newcpu' must be activated in the context of 'fromcpu'. If
443 * vm_activate_cpu() is delayed until newcpu's pthread starts running
447 error = vm_activate_cpu(ctx, newcpu);
449 err(EX_OSERR, "could not activate CPU %d", newcpu);
451 CPU_SET_ATOMIC(newcpu, &cpumask);
457 vmexit[newcpu].rip = rip;
458 vmexit[newcpu].inst_length = 0;
460 mt_vmm_info[newcpu].mt_ctx = ctx;
461 mt_vmm_info[newcpu]
[all...]
/freebsd-12-stable/sys/kern/
H A Dsched_4bsd.c579 unsigned int newcpu; local
586 newcpu = ts->ts_estcpu;
588 while (newcpu && --ts->ts_slptime)
589 newcpu = decay_cpu(loadfac, newcpu);
590 ts->ts_estcpu = newcpu;

Completed in 68 milliseconds