Re: [Xen-devel] [PATCH] xen: Resume PMU from non-atomic context

2015-12-02 Thread David Vrabel
On 02/12/15 17:10, Boris Ostrovsky wrote: > Resuming PMU currently triggers a warning from ___might_sleep() (assuming > CONFIG_DEBUG_ATOMIC_SLEEP is set) when xen_pmu_init() allocates GFP_KERNEL > page because we are in state resembling atomic context. > > Move resuming PMU to xen_arch_resume()

[Xen-devel] [PATCH] xen: Resume PMU from non-atomic context

2015-12-02 Thread Boris Ostrovsky
Resuming PMU currently triggers a warning from ___might_sleep() (assuming CONFIG_DEBUG_ATOMIC_SLEEP is set) when xen_pmu_init() allocates GFP_KERNEL page because we are in state resembling atomic context. Move resuming PMU to xen_arch_resume() which is called in regular context. For symmetry move