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 on creation of Event channel (17= file_exists)

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Error on creation of Event channel (17= file_exists)
From: Carlo Maiero <zesster@xxxxxxxxx>
Date: Wed, 22 Sep 2010 16:37:06 +0200
Delivery-date: Wed, 22 Sep 2010 07:38:13 -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=NAKV5vvX9Hgj0ODBJr16vPEdaGApw63DzUV2NeqBclQ=; b=KBe+I4ONtUIQ8X2HRqBdsjKvWRRYSdA5GgAqFlXodgR2pAgn73NPuoEuHjcQkseny1 KsaPL3fEJhxMbpMgmTPHbWRbyHuOjl4iQekgamhV7AvgvWm9/92xwdjybQMlvW0DQ3at f7gGvNymnBTh5opDBH5/EA+NyEuenhosMljk8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=wdAKgjoPLHlzZI81Nux515LIyomK8A01CzO6fTSYIQTzQoaRsuU9RMTdleXxeriZQj xTLGNc/Cyn8hctiyUE6T1uQlkL9tBRLqqOjB0NoR+zNa+FSN0J8QDdKtrZma7cL0G0B5 o86NtvNFG4H3Mb5NViERPC4+jSJgTOnJIdQzU=
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
I'm creating an event channel between hypervisor and xen. Starting from trace.c xentrace.c

I've put this line in the xen.h

#define � VIRQ_XENINI � �11

I've put in the hypervisor this code:

/*notify DOM0 event of xenini*/
static void xenini_notify_dom0(unsigned long unused){
send_guest_global_virq(dom0, VIRQ_XENINI);
}

static DECLARE_TASKLET(xenini_notify_dom0_tasklet, xenini_notify_dom0, 0);

so if i have to notify to dom0 an event, �i just need to call: �
tasklet_schedule(&xenini_notify_dom0_tasklet);�

true?? (it seems to work)

In a process running on dom0 i'm running this code:

static void event_init(void)
{
�� �int rc;
�� �rc = xc_evtchn_open();
�� �if (rc < 0) {
�� � � �perror(xc_get_last_error()->message);
�� � � �exit(EXIT_FAILURE);
�� �}
�� �event_fd = xc_evtchn_fd(rc);
�� �rc = xc_evtchn_bind_virq(event_fd, VIRQ_XENINI);
�� �if (rc == -1) {
�� � � �PERROR("failed to bind to VIRQ_XENINI port");
�� � � �exit(EXIT_FAILURE);
�� �}
�� �virq_port = rc;
}

and i create a successful way to create the channel.
but when i shut down the process in dom0. when i try to restart it.�
It says: ERROR: failed to bind to VIRQ_XENINI port (17= file_exists).

what i have to add when i close the program?�

Attachment: getinfoDom0.c
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>