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] Making a hypercall in DomU

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Making a hypercall in DomU
From: "Srujan D. Kotikela" <ksrujandas@xxxxxxxxx>
Date: Thu, 2 Dec 2010 17:42:29 -0600
Delivery-date: Thu, 02 Dec 2010 15:43:17 -0800
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=/uI+pl+9YHCy9zKegkNf8ZOZlvsRIE9XPKgNM+xHe0I=; b=dyRo3jKDzp3cWNQpDknNLId8CMMWi/MJDfGOHC3l9JPQS9HrwHUwmI6anW3YvDjhVo Qpb1KHjFdXHgx1q7fP3tIpSIZOb37nTh25BL7poSQqmpd5ESd/ogxhEI1BBVHT8xWEj1 kC7XFZHX1PtvioAF1zsp42a1v1/pX6KIab0Bw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sUCmSGKQhKMj8EQU5RCqzY6+2L7k4u0oz43Jfmqg99Rm3oC7rQiT2+acfSq3TTM9fh b6j8Q77OYp98VKuOTjKbDu8XFnplS48SMh1FH797WUjxdltgKZ8E7PCp6cB7yUu1Exxl zP5qCDrTTCZerbHlDjYVr4+juPybF24g5DvYY=
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 have implemented a new hypercall and it is working fine when tested from the Dom0 user-space. I want to invoke this hypercall from DomU user-space.

I copied all the /usr/lib/libxen* and /usr/include/xen* (recursively) to the DomU

Here's the code I wrote to invoke hypercall:

#include <stdio.h>
#include <xenctrl.h>

int main(void){

        int xc_handle, rc;

        xc_handle = xc_interface_open();

        printf("\n Opened Interface: %d",xc_handle);

        rc = vb_notify(xc_handle);                       ---- Is a function implemented in libxc/ which has the hypercall invocation code

        printf("\n vb_notify returned: %d", rc);

        xc_interface_close(xc_handle);

        return rc;
}


When I try to compile the program which contains the hypercall I am getting error as:

#gcc -lxenctrl notify.c -o Notify
#gcc: error trying to exec 'cc1': execvp: No such file or directory

Same thing works fine from Dom0. Is my approach correct?


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