Date: Fri, 15 Jan 2021 15:00:37 +0200 From: Andrei Martin <andrei.cos.martin@gmail.com> To: freebsd-arm@freebsd.org, freebsd-virtualization@freebsd.org, Mihai Carabas <mihai.carabas@gmail.com>, Darius Mihai <dariusmihaim@gmail.com>, Elena Mihailescu <elenamihailescu22@gmail.com> Subject: Re: [bhyve][arm64] Number of allowed vcpus Message-ID: <CAC%2BC28R_NgsTbRj89xf54Fdx5Rj8oEUF-OY=pSKKBrrm0b-JJg@mail.gmail.com> In-Reply-To: <CAC%2BC28QevGZZhb5trdA=UN-yZp_rLF1pkA8CPhzE3WUuhRv0pw@mail.gmail.com> References: <CAC%2BC28QevGZZhb5trdA=UN-yZp_rLF1pkA8CPhzE3WUuhRv0pw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for you responses and sorry for not specifying the guest's device tree. I've summed up your proposals and sketched and algorithm: N - the number of vcpus from the '-c' parameter X - the number of vcpus from the device tree if there isn't the parameter -> start the vm with X vcpus if there is the parameter --> if N <= X -> start the vm with N parameters |-> if N > X -> throw an error I believe this gives the opportunity to rebuild the device tree and use all vcpus (first branch) or let the device tree as it is (more vcpus) but use only a subset of them. Is this alright? Thanks, Andrei On Wed, Jan 13, 2021 at 1:55 PM Andrei Martin <andrei.cos.martin@gmail.com> wrote: > Hello, > > While working on enabling multiple virtual cpus for the arm64 virtual > machine > I used the bhyve's "-c N" parameter to create N cpus (it gets only the > cpus, in contrast to the amd64). If N is smaller than the number of cores > described in the device tree it will enable only N and if it's larger it > will enable only the number of cores from the device tree. > > I don't know if it is the best approach. Another way would be to enable > all the cpus from the device tree, no more, no less. > > Do you have any suggestions? > > Andrei >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC%2BC28R_NgsTbRj89xf54Fdx5Rj8oEUF-OY=pSKKBrrm0b-JJg>