Re: [PATCH v11 14/14] machine: Put all sanity-check in the generic SMP parser

2021-09-28 Thread wangyanan (Y)
On 2021/9/28 19:01, Philippe Mathieu-Daudé wrote: On 9/28/21 05:57, Yanan Wang wrote: Put both sanity-check of the input SMP configuration and sanity-check of the output SMP configuration uniformly in the generic parser. Then machine_set_smp() will become cleaner, also all the invalid scenario

Re: [PATCH v11 14/14] machine: Put all sanity-check in the generic SMP parser

2021-09-28 Thread Philippe Mathieu-Daudé
On 9/28/21 05:57, Yanan Wang wrote: > Put both sanity-check of the input SMP configuration and sanity-check > of the output SMP configuration uniformly in the generic parser. Then > machine_set_smp() will become cleaner, also all the invalid scenarios > can be tested only by calling the parser. >

Re: [PATCH v11 14/14] machine: Put all sanity-check in the generic SMP parser

2021-09-28 Thread Daniel P . Berrangé
On Tue, Sep 28, 2021 at 11:57:55AM +0800, Yanan Wang wrote: > Put both sanity-check of the input SMP configuration and sanity-check > of the output SMP configuration uniformly in the generic parser. Then > machine_set_smp() will become cleaner, also all the invalid scenarios > can be tested only by

[PATCH v11 14/14] machine: Put all sanity-check in the generic SMP parser

2021-09-27 Thread Yanan Wang
Put both sanity-check of the input SMP configuration and sanity-check of the output SMP configuration uniformly in the generic parser. Then machine_set_smp() will become cleaner, also all the invalid scenarios can be tested only by calling the parser. Signed-off-by: Yanan Wang Reviewed-by: Andrew