All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: James Dingwall <james@dingwall.me.uk>
Cc: xen-devel@lists.xen.org
Subject: Re: Python Bindings Status
Date: Thu, 12 Mar 2015 16:10:01 +0000	[thread overview]
Message-ID: <1426176601.32572.35.camel@citrix.com> (raw)
In-Reply-To: <20150312110247.GA814@dingwall.me.uk>

On Thu, 2015-03-12 at 11:02 +0000, James Dingwall wrote:
> Hi,
> 
> I am trying to use the libxl python bindings but having mixed levels of success.  I assume that the current 
> status of this is unsupported as the build of the xl.so is disabled by default but perhaps completing the 
> missing parts could be quite trivial?

IMHO they are architecturally broken and should be redone from scratch.

In particular the "live update of the backing C struct" aspect is broken
in various respects IIRC and difficult to fix (the original author is
also long gone).

I expect this brokenness relates to why things appear to return 0 for
you.

IMHO a much more sensible approach would be to follow what the ocaml
bindings do and do on demand translation between Python<->C as you call
the libxl functions.

> What level of experience/effort would be required to address this?

Not much Xen experience, mostly Python bindings experience (the
generator itself is in Python too as it happens).

I think it would be a fair effort though.

Ian.

      reply	other threads:[~2015-03-12 16:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12 11:02 Python Bindings Status James Dingwall
2015-03-12 16:10 ` Ian Campbell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1426176601.32572.35.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=james@dingwall.me.uk \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.