diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2016-11-23 13:38:45 +0100 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2016-11-30 07:39:09 +0100 |
commit | b36585a0a3c169612f3105139464a2da1d3ecc03 (patch) | |
tree | 2fa87938f0495196a37b78b55309085fca84b94d /drivers/xen/events | |
parent | xen/gntdev: Use VM_MIXEDMAP instead of VM_IO to avoid NUMA balancing (diff) | |
download | linux-b36585a0a3c169612f3105139464a2da1d3ecc03.tar.xz linux-b36585a0a3c169612f3105139464a2da1d3ecc03.zip |
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 <rkrcmar@redhat.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/xen/events')
-rw-r--r-- | drivers/xen/events/events_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |