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

Reply via email to