]> git.baikalelectronics.ru Git - kernel.git/commit
xen/events: fix binding user event channels to cpus
authorJuergen Gross <jgross@suse.com>
Fri, 21 Jun 2019 18:47:03 +0000 (20:47 +0200)
committerJuergen Gross <jgross@suse.com>
Wed, 17 Jul 2019 06:09:57 +0000 (08:09 +0200)
commita2a7a30ba3c61de9307a98ec64e7c79e4e1b044f
treef84913849df4fe7b8bd63a712e9a25d5be430567
parent5bd82cc71c33e015410ac72676fd5ae115a8a2ab
xen/events: fix binding user event channels to cpus

When binding an interdomain event channel to a vcpu via
IOCTL_EVTCHN_BIND_INTERDOMAIN not only the event channel needs to be
bound, but the affinity of the associated IRQi must be changed, too.
Otherwise the IRQ and the event channel won't be moved to another vcpu
in case the original vcpu they were bound to is going offline.

Cc: <stable@vger.kernel.org> # 4.13
Fixes: d994e60fbddd289b ("xen-evtchn: Bind dyn evtchn:qemu-dm interrupt to next online VCPU")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/events/events_base.c
drivers/xen/evtchn.c
include/xen/events.h