Commit b36585a0 authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by Juergen Gross

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: default avatarRadim Krcmar <rkrcmar@redhat.com>
Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
parent 30faaafd
...@@ -948,7 +948,7 @@ static int find_virq(unsigned int virq, unsigned int cpu) ...@@ -948,7 +948,7 @@ static int find_virq(unsigned int virq, unsigned int cpu)
continue; continue;
if (status.status != EVTCHNSTAT_virq) if (status.status != EVTCHNSTAT_virq)
continue; continue;
if (status.u.virq == virq && status.vcpu == cpu) { if (status.u.virq == virq && status.vcpu == xen_vcpu_nr(cpu)) {
rc = port; rc = port;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment