All of lore.kernel.org
 help / color / mirror / Atom feed
* Making a hypercall in DomU
@ 2010-12-02 23:42 Srujan D. Kotikela
  2010-12-03  8:11 ` Ian Campbell
  0 siblings, 1 reply; 2+ messages in thread
From: Srujan D. Kotikela @ 2010-12-02 23:42 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 992 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-03  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-02 23:42 Making a hypercall in DomU Srujan D. Kotikela
2010-12-03  8:11 ` Ian Campbell

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.