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.
later, Peter. _______________________________________________ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"