Srujan D. Kotikela
2010-Sep-27 16:26 UTC
[Xen-devel] ERROR: While allocating unbound port in remote domain from Dom0
Hi,
I am trying to create an event channel and I am using the below code.
#include <stdint.h>
#include <stdio.h>
#include <xenctrl.h>
#include <xen/xen.h>
#include <xen/event_channel.h>
int main(void){
int xce_handle, src_port, dst_port, xc_handle;
int dom, remote_dom;
dom=0;
remote_dom=15;
xc_handle=xc_interface_open(); //open the hypervisor interface
printf("\n Accquired HYPERVISOR INTERFACE HANDLE: %d \n", xc_handle);
dst_port = xc_evtchn_alloc_unbound(xc_handle, remote_dom, dom); //allocate a
port on the remote domain
printf("\n Allocated the port %d \n", dst_port);
xce_handle = xc_evtchn_open(); //create a handle for event channel
printf("\n Accquired HYPERVISOR INTERFACE EVTCHN HANDLE: %d\n",
xce_handle);
src_port = xc_evtchn_bind_interdomain(xce_handle, dom, dst_port);
printf("\n Allocated the port %d \n", src_port);
return 0;
}
and I am getting the following error:
Accquired HYPERVISOR INTERFACE HANDLE: 3
*ERROR Internal error: do_evtchn_op: HYPERVISOR_event_channel_op failed: -1*
Allocated the port -1
Accquired HYPERVISOR INTERFACE EVTCHN HANDLE: 4
Allocated the port -1
--
Srujan D. Kotikela
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel