From: Vitaly Kuznetsov Date: Wed, 23 Nov 2016 12:38:45 +0000 (+0100) Subject: xen/events: use xen_vcpu_id mapping for EVTCHNOP_status X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b36585a0a3c169612f3105139464a2da1d3ecc03;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git xen/events: use xen_vcpu_id mapping for EVTCHNOP_status EVTCHNOP_status hypercall returns Xen's idea of vcpu id so we need to compare it against xen_vcpu_id mapping, not the Linux cpu id. Suggested-by: Radim Krcmar Signed-off-by: Vitaly Kuznetsov Reviewed-by: Boris Ostrovsky Signed-off-by: Juergen Gross --- diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index 9ecfcdcdd6d6..137bd0e799e7 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -948,7 +948,7 @@ static int find_virq(unsigned int virq, unsigned int cpu) continue; if (status.status != EVTCHNSTAT_virq) continue; - if (status.u.virq == virq && status.vcpu == cpu) { + if (status.u.virq == virq && status.vcpu == xen_vcpu_nr(cpu)) { rc = port; break; }