Re: [PATCH v7 05/15] machine: Improve the error reporting of smp parsing

2021-08-24 Thread wangyanan (Y)
On 2021/8/24 15:29, Philippe Mathieu-Daudé wrote: On 8/24/21 6:51 AM, wangyanan (Y) wrote: On 2021/8/23 21:17, Philippe Mathieu-Daudé wrote: On 8/23/21 2:27 PM, Yanan Wang wrote: We have two requirements for a valid SMP configuration: the product of "sockets * cores * threads" must represent

Re: [PATCH v7 05/15] machine: Improve the error reporting of smp parsing

2021-08-24 Thread Philippe Mathieu-Daudé
On 8/24/21 6:51 AM, wangyanan (Y) wrote: > On 2021/8/23 21:17, Philippe Mathieu-Daudé wrote: >> On 8/23/21 2:27 PM, Yanan Wang wrote: >>> We have two requirements for a valid SMP configuration: >>> the product of "sockets * cores * threads" must represent all the >>> possible cpus, i.e., max_cpus,

Re: [PATCH v7 05/15] machine: Improve the error reporting of smp parsing

2021-08-23 Thread wangyanan (Y)
On 2021/8/23 21:17, Philippe Mathieu-Daudé wrote: On 8/23/21 2:27 PM, Yanan Wang wrote: We have two requirements for a valid SMP configuration: the product of "sockets * cores * threads" must represent all the possible cpus, i.e., max_cpus, and then must include the initially present cpus, i.e

Re: [PATCH v7 05/15] machine: Improve the error reporting of smp parsing

2021-08-23 Thread Philippe Mathieu-Daudé
On 8/23/21 2:27 PM, Yanan Wang wrote: > We have two requirements for a valid SMP configuration: > the product of "sockets * cores * threads" must represent all the > possible cpus, i.e., max_cpus, and then must include the initially > present cpus, i.e., smp_cpus. > > So we only need to ensure 1)

[PATCH v7 05/15] machine: Improve the error reporting of smp parsing

2021-08-23 Thread Yanan Wang
We have two requirements for a valid SMP configuration: the product of "sockets * cores * threads" must represent all the possible cpus, i.e., max_cpus, and then must include the initially present cpus, i.e., smp_cpus. So we only need to ensure 1) "sockets * cores * threads == maxcpus" at first an