Skip to contentSkip to conversation

cpupool: fix ASSERT( c != old_pool )

PATCH Juergen Gross 1 participant 1 message Apr 8, 2019

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines · Jan Beulich
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 08.04.19 at 07:09, <[email protected]> wrote:
Quoted 3 lines · FionaLi-oc

Assigning cpu to cpupool needn't to switch cpu scheduler when system state is resume, otherwise it will cause ASSERT in schedule_cpu_switch().

Quoted 6 lines
Quoted 3 lines

I don't think this patch is needed on current staging tree. Commit 6870ea9d1fad6fbe27 changed resume handling leading to cpupool_assign_cpu_locked() being no longer called when resuming.

But is it something worthwhile to put onto stable trees (with the one missing blank added)?

I don't think it is always correct.

While avoiding the ASSERT() triggering it won't switch back the scheduler from the default one at resume, which was activated when suspending the machine.

So for older Xen versions we'd need to know which ASSERT() was triggering and why that did happen, or we could backport my series removing really the need for calling schedule_cpu_switch().

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel