Maybe, I've tried least intrusive change as not entirely familiar with plugin login in QEMU.

On Mon, Apr 20, 2020 at 1:11 PM Peter Maydell <peter.maydell@linaro.org> wrote:
On Mon, 20 Apr 2020 at 10:16, Nikolay Igotti <igotti@gmail.com> wrote:
>
> In linux-user multithreaded scenarious CPU could be inited many times with the same id,
>
> so avoid assertions on already present hashtable entry.
>
>
> Signed-off-by: Nikolay Igotti <igotti@gmail.com>

Wouldn't it be better to make sure we remove the entry from
the hashtable when the old thread that was using that CPU
ID exits, or is that not feasible ?

thanks
-- PMM