]> git.itanic.dy.fi Git - linux-stable/commit
xen/events: use a common cpu hotplug hook for event channels
authorJuergen Gross <jgross@suse.com>
Tue, 3 Nov 2020 14:29:09 +0000 (15:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 17:28:02 +0000 (18:28 +0100)
commite8947cebce49599fe00bf588954b42742d62c2b2
treee6333441bc52b18ede24f145f7ed75722efb49f0
parent2bf6c6f0e5a8a21f853148b189e41ca8ee545a14
xen/events: use a common cpu hotplug hook for event channels

commit 7beb290caa2adb0a399e735a1e175db9aae0523a upstream.

Today only fifo event channels have a cpu hotplug callback. In order
to prepare for more percpu (de)init work move that callback into
events_base.c and add percpu_init() and percpu_deinit() hooks to
struct evtchn_ops.

This is part of XSA-332.

Cc: stable@vger.kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/xen/events/events_base.c
drivers/xen/events/events_fifo.c
drivers/xen/events/events_internal.h