diff options
author | Juergen Gross <jgross@suse.com> | 2019-06-21 20:47:03 +0200 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2019-07-17 08:09:57 +0200 |
commit | bce5963bcb4f9934faa52be323994511d59fd13c (patch) | |
tree | f84913849df4fe7b8bd63a712e9a25d5be430567 /drivers/xen/evtchn.c | |
parent | Merge tag 'for-linus-20190715' of git://git.kernel.dk/linux-block (diff) | |
download | linux-bce5963bcb4f9934faa52be323994511d59fd13c.tar.xz linux-bce5963bcb4f9934faa52be323994511d59fd13c.zip |
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: c48f64ab472389df ("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>
Diffstat (limited to 'drivers/xen/evtchn.c')
-rw-r--r-- | drivers/xen/evtchn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c index f341b016672f..052b55a14ebc 100644 --- a/drivers/xen/evtchn.c +++ b/drivers/xen/evtchn.c @@ -447,7 +447,7 @@ static void evtchn_bind_interdom_next_vcpu(int evtchn) this_cpu_write(bind_last_selected_cpu, selected_cpu); /* unmask expects irqs to be disabled */ - xen_rebind_evtchn_to_cpu(evtchn, selected_cpu); + xen_set_affinity_evtchn(desc, selected_cpu); raw_spin_unlock_irqrestore(&desc->lock, flags); } |