Re: [PATCH for-6.2 v2 08/11] machine: Use ms instead of global current_machine in sanity-check

2021-07-19 Thread Andrew Jones
On Mon, Jul 19, 2021 at 11:20:40AM +0800, Yanan Wang wrote: > In the sanity-check of smp_cpus and max_cpus against mc in function > machine_set_smp(), we are now using ms->smp.max_cpus for the check > but using current_machine->smp.max_cpus in the error message. > Tweak this by uniformly using the

[PATCH for-6.2 v2 08/11] machine: Use ms instead of global current_machine in sanity-check

2021-07-18 Thread Yanan Wang
In the sanity-check of smp_cpus and max_cpus against mc in function machine_set_smp(), we are now using ms->smp.max_cpus for the check but using current_machine->smp.max_cpus in the error message. Tweak this by uniformly using the local ms. Signed-off-by: Yanan Wang --- hw/core/machine.c | 2 +-