Date: Wed, 03 Jun 2015 10:17:13 -0700 From: Peter Grehan <grehan@freebsd.org> To: Stefan Andritoiu <stefan.andritoiu@gmail.com> Cc: freebsd-virtualization@freebsd.org Subject: Re: Where are the VCPU threads created? Message-ID: <556F3699.7000609@freebsd.org> In-Reply-To: <CAO3d8=bWJ-K-k9mRChpC4snVHkXoMrnQTA5L-VNqzoApDhbP3g@mail.gmail.com> References: <CAO3d8=bWJ-K-k9mRChpC4snVHkXoMrnQTA5L-VNqzoApDhbP3g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?556F3699.7000609>