diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
commit | b491e4e05dabc4708bb21d426c38774996fc111a (patch) | |
tree | 5df170bfe15c5edd6c12a6d2f6f5cb29cfa00bb2 /tools/libxc/xc_solaris.c | |
parent | cb1325b0d5f2809eeb855ef3dc655366536910b8 (diff) | |
download | xen-b491e4e05dabc4708bb21d426c38774996fc111a.tar.gz xen-b491e4e05dabc4708bb21d426c38774996fc111a.tar.bz2 xen-b491e4e05dabc4708bb21d426c38774996fc111a.zip |
libxc: osdep: convert xc_evtchn_bind_interdomain()
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xc_solaris.c')
-rw-r--r-- | tools/libxc/xc_solaris.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/libxc/xc_solaris.c b/tools/libxc/xc_solaris.c index eaacad5f70..3e704c2c7e 100644 --- a/tools/libxc/xc_solaris.c +++ b/tools/libxc/xc_solaris.c @@ -229,15 +229,16 @@ solaris_evtchn_bind_unbound_port(xc_evtchn *xce, xc_osdep_handle h, int domid) } evtchn_port_or_error_t -xc_evtchn_bind_interdomain(xc_evtchn *xce, int domid, +solaris_evtchn_bind_interdomain(xc_evtchn *xce, xc_osdep_handle h, int domid, evtchn_port_t remote_port) { + int fd = (int)h; struct ioctl_evtchn_bind_interdomain bind; bind.remote_domain = domid; bind.remote_port = remote_port; - return ioctl(xce->fd, IOCTL_EVTCHN_BIND_INTERDOMAIN, &bind); + return ioctl(fd, IOCTL_EVTCHN_BIND_INTERDOMAIN, &bind); } evtchn_port_or_error_t @@ -283,6 +284,7 @@ static struct xc_osdep_ops solaris_evtchn_ops = { .fd = &solaris_evtchn_fd, .notify = &solaris_evtchn_notify, .bind_unbound_port = &solaris_evtchn_bind_unbound_port, + .bind_interdomain = &solaris_evtchn_bind_interdomain, }, }; |