]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xen/events: use a common cpu hotplug hook for event channels
authorJuergen Gross <jgross@suse.com>
Sun, 13 Sep 2020 12:23:02 +0000 (14:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:37 +0000 (11:08 +0100)
commit536075098940120179416dc884e08ced37b2c02a
tree206c1056a2266fc0be0309a91faa41e314df077e
parent8363670c4d0b302cdf0146ee8203401111568b6d
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