diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-10-04 15:02:51 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-10-04 15:02:51 +0100 |
commit | 92f5a40578f9f898b035db0a13d852c01e1eea77 (patch) | |
tree | 31f3c1d9772299ebfe5ae20af4e0244c103634b6 /tools/libxc/xc_evtchn.c | |
parent | 3f23e585b298ef3f7f601a1369022c7ec39c96f1 (diff) | |
download | xen-92f5a40578f9f898b035db0a13d852c01e1eea77.tar.gz xen-92f5a40578f9f898b035db0a13d852c01e1eea77.tar.bz2 xen-92f5a40578f9f898b035db0a13d852c01e1eea77.zip |
Allow EVTCHNOP_bind_{ipi,virq} to specify the vcpu to
bind to. Previously the alloacted port was implicitly
bound to the calling vcpu.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xc_evtchn.c')
-rw-r--r-- | tools/libxc/xc_evtchn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxc/xc_evtchn.c b/tools/libxc/xc_evtchn.c index 74e8468dd5..f7698d3541 100644 --- a/tools/libxc/xc_evtchn.c +++ b/tools/libxc/xc_evtchn.c @@ -90,7 +90,8 @@ int xc_evtchn_bind_virq(int xc_handle, op.cmd = EVTCHNOP_bind_virq; op.u.bind_virq.virq = (u32)virq; - + op.u.bind_virq.vcpu = 0; + if ( (rc = do_evtchn_op(xc_handle, &op)) == 0 ) { if ( port != NULL ) |