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

2021-01-15 Thread Peter Grehan
Hi Andrei, 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

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

2021-01-15 Thread Andrei Martin
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

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

2021-01-14 Thread Peter Grehan
Hi Andrei, 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

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

2021-01-13 Thread Ian Lepore
On Wed, 2021-01-13 at 17:00 +0200, Mihai Carabas wrote: > We are talking here about the device tree of the guest. If you boot > up a guest with a device tree of X vcpus, why specify something else > on the command line? Because typing a command line arg is a lot easier than recompiling a device tr

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

2021-01-13 Thread Rodney W. Grimes
> On Wed, Jan 13, 2021 at 4:55 PM Rodney W. Grimes < > freebsd-...@gndrsh.dnsmgr.net> wrote: > > > > Hello, > > > > > > >From my perspective bhyve should use what is stated in the device tree > > if > > > no parameter is given and throw an error when N is greater than the > > device > > > tree val

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

2021-01-13 Thread Mihai Carabas
On Wed, Jan 13, 2021 at 4:55 PM Rodney W. Grimes < freebsd-...@gndrsh.dnsmgr.net> wrote: > > Hello, > > > > >From my perspective bhyve should use what is stated in the device tree > if > > no parameter is given and throw an error when N is greater than the > device > > tree value. > > > > Mihai >

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

2021-01-13 Thread Rodney W. Grimes
> Hello, > > >From my perspective bhyve should use what is stated in the device tree if > no parameter is given and throw an error when N is greater than the device > tree value. > > Mihai That seems to be one reasonable solution. I am not very informed on what the CPU over commit situation is

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

2021-01-13 Thread Mihai Carabas
Hello, >From my perspective bhyve should use what is stated in the device tree if no parameter is given and throw an error when N is greater than the device tree value. Mihai On Wed, Jan 13, 2021 at 1:55 PM Andrei Martin wrote: > Hello, > > While working on enabling multiple virtual cpus for t

[bhyve][arm64] Number of allowed vcpus

2021-01-13 Thread Andrei Martin
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 large