Re: [PATCH v2 3/3] xen/sched: fix cpu hotplug

2022-08-15 Thread Jan Beulich
On 15.08.2022 13:04, Juergen Gross wrote: > Cpu cpu unplugging is calling schedule_cpu_rm() via stop_machine_run() > with interrupts disabled, thus any memory allocation or freeing must > be avoided. > > Since commit 5047cd1d5dea ("xen/common: Use enhanced > ASSERT_ALLOC_CONTEXT in xmalloc()") thi

[PATCH v2 3/3] xen/sched: fix cpu hotplug

2022-08-15 Thread Juergen Gross
Cpu cpu unplugging is calling schedule_cpu_rm() via stop_machine_run() with interrupts disabled, thus any memory allocation or freeing must be avoided. Since commit 5047cd1d5dea ("xen/common: Use enhanced ASSERT_ALLOC_CONTEXT in xmalloc()") this restriction is being enforced via an assertion, whic