Hi Stefan,

I see that in the main() function of bhyverun.c it adds CPU0 by
calling fbsdrun_addcpu(ctx, 0, 0, rip). But I can't find where the
other VCPUs are added. Or if the 'guest_ncpus' variable is ever used
(except for error checks)

Have a look at bhyve/spinup_ap.c:spinup_ap() which is called when a the vmm kernel module detects a SIPI message being sent to the local APIC and forces a vm-exit to userspace.


freebsd-virtualization@freebsd.org mailing list
To unsubscribe, send any mail to 

Reply via email to