Re: [PATCH v1] xen: avoid crash in disable_hotplug_cpu

From: Juergen Gross
Date: Wed Sep 05 2018 - 08:04:08 EST


On 05/09/18 13:50, Olaf Hering wrote:
> Am Wed, 5 Sep 2018 12:55:58 +0200
> schrieb Juergen Gross <jgross@xxxxxxxx>:
>
>> the last cpu
>
> Which one is the "last" one? I mean, if cpu#0 never can be offlined than perhaps the code should check for just that and return early. But if cpu#0 could be disabled while some other cpu is the remaining cpu, some other check is needed I think.

num_online_cpus() == 1


Juergen