Where are the VCPU threads created?
Peter Grehan
grehan at freebsd.org
Wed Jun 3 17:17:20 UTC 2015
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.
More information about the freebsd-virtualization
mailing list