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

Re: [Xen-devel] Making a hypercall in DomU

To: "Srujan D. Kotikela" <ksrujandas@xxxxxxxxx>
Subject: Re: [Xen-devel] Making a hypercall in DomU
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Fri, 3 Dec 2010 08:11:16 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 03 Dec 2010 00:12:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTik9vR35FpHKQsYMwkQxacpgXs0UGy+D+_QOZhya@xxxxxxxxxxxxxx>
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>
Organization: Citrix Systems, Inc.
References: <AANLkTik9vR35FpHKQsYMwkQxacpgXs0UGy+D+_QOZhya@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2010-12-02 at 23:42 +0000, Srujan D. Kotikela wrote:
> 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

Your domU toolchain seems to be broken, you are missing the cc1 binary
which is an integral (internal) part of gcc. This has nothing particular
to do with Xen.

Ian.

> 
> 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>