]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 10 Dec 2020 11:02:39 +0000 (12:02 +0100)
commit2c6ab3f4e988f2749bd4550422bb40830ea1ffe0
treeecb65eceaacb93b503e0d8fdde867e119b5b2f68
parent4ff4b6f68d6b7c564ad4e7cb4ed5933009799803
xen/events: use a common cpu hotplug hook for event channels

BugLink: https://bugs.launchpad.net/bugs/1904450
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
drivers/xen/events/events_base.c
drivers/xen/events/events_fifo.c
drivers/xen/events/events_internal.h