WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] ERROR: While allocating unbound port in remote domain from D

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] ERROR: While allocating unbound port in remote domain from Dom0
From: "Srujan D. Kotikela" <ksrujandas@xxxxxxxxx>
Date: Mon, 27 Sep 2010 11:26:09 -0500
Delivery-date: Mon, 27 Sep 2010 09:26:50 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=Y4r+sHDjLVvKnWJ8F5pamjTYwYFBy2eo5ZhrzfczSJI=; b=W2TU6J8QbxcWZ0JLjOlnh8Bur1J99LUqTpX5wm1JM9Pbk7SoPR+/0ViBHbPD8m3f/Z b8r4lJ03ThB3k1c73tao+8dAdDRR7apoi7szpSLenc9YDWHLAfSeR+kDjaMPbIb4b+SS mtiLL4B6mEXmUFaz7L0L7ReSHHsikVXTZ2+CQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=BZHkVbRNUn8E5kvGd/JPOHLVm1EeNOJZhZpjWte/jDTnToEZ/TGMIw35vkqDhfOr61 YWsCl0I2IhLGNYXAam+l3+ai7ChLlLE9d5jnyXlSU7lTGoZRyKZASeikdMxz7GCfvFH5 DVhG9Erj0ZidWZBc/vgm037xNM9ZFuUfS6ANQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] ERROR: While allocating unbound port in remote domain from Dom0, Srujan D. Kotikela <=