|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Libvir: a simple C virtualization control library
Hi Daniel,I think the goal of having a library that allows applications to interact with Xen is a great idea. I suggest though that instead of taking the current approach of reimplementing a hypercall library, you consider just using Xend's HTTP interface. xm/xend communicate via an web services API that's based on S-Expressions. Xend can listen on a domain socket and/or a TCP socket for incoming connections so both transports should be supported. You can access this interface by doing an HTTP request with the Content-Type set to application/sxp. The protocol uses the URL to identify the command and options and returns s-expressions. You can get a feeling for the supported commands by enabling the TCP server and going to http://localhost:8000/xend/domain/ This would allow you to have an LGPL control library yet not rewrite all of Xend. It also requires minimal dependencies since I believe libxml2 already has an HTTP client (though you'd have to add a domain socket transport). An interesting thing to do too would be to attempt to add support to Xend for another mime type (like text/xml) and perhaps even support XML-RPC. This would be really excellent long term as it could eliminate a ton of code in Xend and xm by just reusing the python XML-RPC support. Regards, Anthony Liguori Daniel Veillard wrote: _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |