Commit cbbb4682 authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by David Vrabel

xen/evtchn: use xen_vcpu_id mapping

Use the newly introduced xen_vcpu_id mapping to get Xen's idea of vCPU
id for CPU0.
Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
parent be78da1c
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
#include <xen/xen.h> #include <xen/xen.h>
#include <xen/events.h> #include <xen/events.h>
#include <xen/evtchn.h> #include <xen/evtchn.h>
#include <xen/xen-ops.h>
#include <asm/xen/hypervisor.h> #include <asm/xen/hypervisor.h>
struct per_user_data { struct per_user_data {
...@@ -456,7 +457,7 @@ static long evtchn_ioctl(struct file *file, ...@@ -456,7 +457,7 @@ static long evtchn_ioctl(struct file *file,
break; break;
bind_virq.virq = bind.virq; bind_virq.virq = bind.virq;
bind_virq.vcpu = 0; bind_virq.vcpu = xen_vcpu_nr(0);
rc = HYPERVISOR_event_channel_op(EVTCHNOP_bind_virq, rc = HYPERVISOR_event_channel_op(EVTCHNOP_bind_virq,
&bind_virq); &bind_virq);
if (rc != 0) if (rc != 0)
......
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