From: David Markey Subject: Re: future plans for libxl? Date: Thu, 15 Apr 2010 08:26:54 +0100 Message-ID: References: <4BC578DF.9000508@amd.com> <4BC6BE62.3020000@amd.com> Reply-To: admin@dmarkey.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0416758079==" Return-path: In-Reply-To: <4BC6BE62.3020000@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andre Przywara Cc: xen-devel@lists.xensource.com, Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --===============0416758079== Content-Type: multipart/alternative; boundary=001485f03c08429e460484416bb5 --001485f03c08429e460484416bb5 Content-Type: text/plain; charset=ISO-8859-1 Are there any plans for python bindings for libxl? I could probably do something up with ctypes, but I assume the ABI isnt at all stable to do that yet. On 15 April 2010 08:21, Andre Przywara wrote: > Stefano Stabellini wrote: > >> On Wed, 14 Apr 2010, Andre Przywara wrote: >> >>> Hi, >>> >>> what is the current master plan for libxl? >>> >> >> ... > > Was there a mail or a document I missed already explaining this? >>> >>> >> You didn't miss any email, we were planning on talking about this at >> the next XenSummit. >> >> Libxenlight is almost feature complete already: there are few things >> missing, but not much. >> > I stumbled upon missing 'info' support, so I implemented a basic version of > it. A few questions about it: > 1.) Is there a fixed interface for libxenlight? I see libxc interfaces > duplicated (like {xc,libxl_get}_physinfo), is that thought to provide a more > stable interface than xc does (which changed quite a bit lastly). What about > extending this interface? For complete xl info I need more field of the > physinfo sysctl to be provided by libxl_get_physinfo, is it OK to extend the > struct libxl_physinfo? > 2.) I see a simple check of LIBXL_VERSION when doing libxl_ctx_init(). Is > that meant to be that hard or is a compatibility scheme planned (like: > support apps using on older interface and somehow emulate it?) > > > Implementing the missing features and making the library rock solid are >> our top priorities and we hope to get them done by the 4.1 release. >> We also want to port xend and XCP to libxenlight to remove code >> duplication and make it easier for xen and kernel developers to add new >> features to the toolstacks. >> > That sounds great. What is the timeframe for this? Currently I do xend code > in the first run and consider libxenlight only with lower priority. Shall I > swap this? > > > The xl tool is going to be the main testing tool for libxenlight and is >> going to provide a command line interface 99% compatible with xm; once >> libxenlight is complete and robust we would like people that currently >> use xend, especially developers, to try out xl. >> > I did, and I like it's speed (and relaxed dependency!). Although xm is not > that slow, xl is noticeably faster: > brandon# time xm list > Name ID Mem VCPUs State Time(s) > Domain-0 0 512 1 r----- 194.5 > 0.83s real 0.17s user 0.29s system > brandon# time xl list > Name ID Mem VCPUs State Time(s) > Domain-0 0 512 1 r-- 194.6 > 0.02s real 0.01s user 0.02s system > Not that speed actually matters with management tools, but it's very nice > to have a quickly responding interface. > > > Even though xend will be ported to libxenlight, xl is going to be >> smaller and well tested, therefore we encourage people that don't need >> advanced xend features, like managed domains or the XML RPC interface, >> to use xl. >> > That is good to know. We often have issue with xend not starting for this > or that reason, hope that will be easier in the future. > > Regards, > Andre. > > P.S. Thanks for the great work, if you need some help in any area, tell the > ML. Maybe a list of missing features or open issue on the Wiki is a good > idea. > > > -- > Andre Przywara > AMD-Operating System Research Center (OSRC), Dresden, Germany > Tel: +49 351 448-3567-12 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > --001485f03c08429e460484416bb5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Are there any plans for python bindings for libxl?

I cou= ld probably do something up with ctypes, but I assume the ABI isnt at all s= table to do that yet.


On 15 Ap= ril 2010 08:21, Andre Przywara <andre.przywara@amd.com> wrote:
Stefano Stabellini wrote:=
On Wed, 14 Apr 2010, Andre Przywara wrote:
Hi,

what is the current master plan for libxl?
>> ...

Was there a mail or a document I missed already explaining this?


You didn't miss any email, we were planning on talking about this at the next XenSummit.

Libxenlight is almost feature complete already: there are few things
missing, but not much.
I stumbled upon missing 'info' support, so I implemented a basic ve= rsion of it. A few questions about it:
1.) Is there a fixed interface for libxenlight? I see libxc interfaces dupl= icated (like {xc,libxl_get}_physinfo), is that thought to provide a more st= able interface than xc does (which changed quite a bit lastly). What about = extending this interface? For complete xl info I need more field of the phy= sinfo sysctl to be provided by libxl_get_physinfo, is it OK to extend the s= truct libxl_physinfo?
2.) I see a simple check of LIBXL_VERSION when doing libxl_ctx_init(). Is t= hat meant to be that hard or is a compatibility scheme planned (like: suppo= rt apps using on older interface and somehow emulate it?)


Implementing the missing features and making the library rock solid are
our top priorities and we hope to get them done by the 4.1 release.
We also want to port xend and XCP to libxenlight to remove code
duplication and make it easier for xen and kernel developers to add new
features to the toolstacks.
That sounds great. What is the timeframe for this? Currently I do xend code= in the first run and consider libxenlight only with lower priority. Shall = I swap this?


The xl tool is going to be the main testing tool for libxenlight and is
going to provide a command line interface 99% compatible with xm; once
libxenlight is complete and robust we would like people that currently
use xend, especially developers, to try out xl.
I did, and I like it's speed (and relaxed dependency!). Although xm is = not that slow, xl is noticeably faster:
brandon# time xm list
Name =A0 =A0 =A0 =A0 =A0 ID =A0 Mem VCPUs =A0 =A0 =A0State =A0 Time(s)
Domain-0 =A0 =A0 =A0 =A00 =A0 512 =A0 =A0 1 =A0 =A0 r----- =A0 =A0194.5
=A0 =A00.83s real =A0 =A0 0.17s user =A0 =A0 0.29s system
brandon# time xl list
Name =A0 =A0 =A0 =A0 =A0 ID =A0 Mem VCPUs =A0 =A0 =A0State =A0 Time(s)
Domain-0 =A0 =A0 =A0 =A00 =A0 512 =A0 =A0 1 =A0 =A0 =A0 =A0r-- =A0 =A0194.6=
=A0 =A00.02s real =A0 =A0 0.01s user =A0 =A0 0.02s system
Not that speed actually matters with management tools, but it's very ni= ce to have a quickly responding interface.


Even though xend will be ported to libxenlight, xl is going to be
smaller and well tested, therefore we encourage people that don't need<= br> advanced xend features, like managed domains or the XML RPC interface,
to use xl.
That is good to know. We often have issue with xend not starting for this o= r that reason, hope that will be easier in the future.

Regards,
Andre.

P.S. Thanks for the great work, if you need some help in any area, tell the= ML. Maybe a list of missing features or open issue on the Wiki is a good i= dea.


--
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 448-3567-12


_______________________________________________
Xen-devel mailing list
Xen-deve= l@lists.xensource.com
http://l= ists.xensource.com/xen-devel

--001485f03c08429e460484416bb5-- --===============0416758079== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0416758079==--