Skip to contentSkip to conversation

g_assert(cpu->halted) in mttcg_cpu_thread_fn()

DISCUSSION Nicholas Piggin 1 participant 1 message May 19, 2022

lore
Share & tools
lore
#0 lore raw

I hit this assert in a ppc spapr guest with several CPUs.

There are some paths where cpu1->halted is set to 0 by cpu2, e.g., h_prod(). AFAIKS this could trigger the assert if another thread raced with the thread that is halting.

Is this just a false positive in the assert, or is our handling of halted wrong?

Thanks,
Nick