Re: [bhyve][arm64] Number of allowed vcpus

Andrei Martin <[email protected]>
Newsgroups gmane.os.freebsd.devel.virtualization,gmane.os.freebsd.devel.arm
Message-ID <CAC+C28R_NgsTbRj89xf54Fdx5Rj8oEUF-OY=pSKKBrrm0b-JJg@mail.gmail.com>
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 <[email protected]>
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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.