From: Ian Campbell <Ian.Campbell@citrix.com>
To: "Srujan D. Kotikela" <ksrujandas@gmail.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Making a hypercall in DomU
Date: Fri, 3 Dec 2010 08:11:16 +0000 [thread overview]
Message-ID: <1291363876.4149.83.camel@localhost.localdomain> (raw)
In-Reply-To: <AANLkTik9vR35FpHKQsYMwkQxacpgXs0UGy+D+_QOZhya@mail.gmail.com>
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
prev parent reply other threads:[~2010-12-03 8:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 23:42 Making a hypercall in DomU Srujan D. Kotikela
2010-12-03 8:11 ` Ian Campbell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1291363876.4149.83.camel@localhost.localdomain \
--to=ian.campbell@citrix.com \
--cc=ksrujandas@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.