[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Using LibXC



Hi Dario,

Thanks for your reply. I had a look in LibXL and the way the toolstack works. It seems that the call is fundamentally similar to that of the one I mentioned in LibXC.
libxl_domain_create_new is indeed something I am looking for.
The problem is that when I try to build my program to use the library,
the compiler cannot find xen/libelf/libelf.h in xc_dom.h.

Having looked at libelf it seems to be arch specific code.
Does that mean that I have to cross compile something?
Or compile it _with_ the rest of the tools?
Sounds like a nightmare if this is the solution.

Regards,

AXS

On 10/07/2012 14:35, Dario Faggioli wrote:
On Mon, 2012-07-09 at 15:50 +0100, Adrian Shaw wrote:
Good afternoon all,

Hello,

I wish to write a program to use the LibXC library.
I want this program to spawn a VM and return its ID.
I see that there is a file called xc_domain.c which has a function for
doing that.
Is this the function I should be using?
I haven't been able to find any documentation or examples of how to
use this in C.

I can't tell whether or not there is a _single_ function to do that
(and, if yes, which one is), but if you're willing to read some code you
can check what xl and libxl do to accomplish something similar
(xl_cmdimpl.c:create_domain() and/or libxl_domain_create_new(), for
example).

Thanks and Regards,
Dario





_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.