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

Re: [Xen-devel] [PATCH] tools: remove unused wrappers for python



On Tue, Oct 06, 2015 at 05:38:42PM +0100, Ian Campbell wrote:
> On Tue, 2015-10-06 at 17:31 +0100, Wei Liu wrote:
> > On Tue, Oct 06, 2015 at 04:38:08PM +0100, Andrew Cooper wrote:
> > > On 06/10/15 16:26, Ian Campbell wrote:
> > > > On Tue, 2015-10-06 at 17:21 +0200, Juergen Gross wrote:
> > > > > On 10/06/2015 05:11 PM, Ian Campbell wrote:
> > > > > > On Tue, 2015-10-06 at 16:51 +0200, Juergen Gross wrote:
> > > > > > > On 10/06/2015 03:40 PM, Ian Campbell wrote:
> > > > > > > > On Tue, 2015-10-06 at 12:39 +0100, Wei Liu wrote:
> > > > > > > > 
> > > > > > > > > And for the record, if my google-fu doesn't fail me, it's
> > > > > > > > > possible to
> > > > > > > > > load shared library into python interpreter using "dl"
> > > > > > > > > module in
> > > > > > > > > 2.7
> > > > > > > > > and
> > > > > > > > > "ctypes" module in 3.x.
> > > > > > > > Possible, but not especially convenient since you need to
> > > > > > > > convert
> > > > > > > > the C
> > > > > > > > prototype manually, plus the result is not necessarily very
> > > > > > > > "pythonic".
> > > > > > > > 
> > > > > > > > I could totally see why people would prefer these bindings
> > > > > > > > (or an
> > > > > > > > argument
> > > > > > > > for us providing a ctypes based wrapper).
> > > > > > > How often is such a debugging interface being used? Please
> > > > > > > consider
> > > > > > > the amount of code (my patch removed nearly 3000 lines of
> > > > > > > code!) and
> > > > > > > the availability of the xl wrapper.
> > > > > > My understanding was that this was used by the "xen-bugtool"
> > > > > > stuff in
> > > > > > XenServer, so for actual functionality (gathering debug info) and
> > > > > > not
> > > > > > debugging (I supposed that the reference to being used for
> > > > > > debugging was
> > > > > > due to the name of the tool).
> > > > > And this functionality isn't available via the xl bindings?
> > > > I don't know, we'll have to wait for those who are using it to chime
> > > > in.
> > > 
> > > The python xl bindings? They don't even compile.
> > 
> > Urgh. It does compile for me.
> 
> Are you talking about tools/python/xen/lowlevel/xl/? Because that seems
> unlikely.
> 

Yes. That one. It successfully built a xl.so, along with xs.so and
xc.so.

weil@zion:/local/scratch/xen.git$ file 
tools/python/build/lib.linux-x86_64-2.7/xen/lowlevel/xl.so 
tools/python/build/lib.linux-x86_64-2.7/xen/lowlevel/xl.so: ELF 64-bit LSB 
shared object, x86-64, version 1 (SYSV), dynamically linked, 
BuildID[sha1]=e164a1e0f97a1c92fa10ef7b4b7b5918abacbec5, not stripped

TBH I have no idea why. I don't particularly care about this thing
either, just want to make sure we're on the same page talking about the
same thing.

> In any case they certain don't work, they have a model for updating the C
> versions of the data structures in sync with the python code, as opposed to
> marshalling in and out around the libxl calls like the other language
> bindings do, which is IIRC broken wrt at least nested structures and keyed
> unions IIRC (and probably other stuff now).
> 

OK then. I will just send a patch to delete it.

Wei.

> Ian.

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


 


Rackspace

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