All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [PATCH] libxen-3.0 (libxc rewrite)
@ 2005-03-22 17:21 Ian Pratt
  2005-03-22 17:31 ` Anthony Liguori
  0 siblings, 1 reply; 36+ messages in thread
From: Ian Pratt @ 2005-03-22 17:21 UTC (permalink / raw)
  To: Jeremy Katz, Anthony Liguori; +Cc: xen-devel, ian.pratt

> > Do you have a suggestion for an alternative?  I know there 
> are a number 
> > of binding-generators but I thought Pyrex was the most widely used.
> 
> Pyrex is probably the most generally used -- the stuff pygtk uses is
> nice, but not very general.
> 
> In most cases, though, bindings done by hand end up being 
> higher quality
> than something that's just being generated.

I've just looked at Pyrex and it doesn't look like a good soloution to
me. It doesn't seem to offer much over the current manual bindings in
Xc.

Has anyone any recent experience with SWIG?

Ian


-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_idh82&alloc_id\x15148&op=click

^ permalink raw reply	[flat|nested] 36+ messages in thread
* RE: [PATCH] libxen-3.0 (libxc rewrite)
@ 2005-03-22 16:25 Ian Pratt
  0 siblings, 0 replies; 36+ messages in thread
From: Ian Pratt @ 2005-03-22 16:25 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Christian.Limpach, xen-devel, ian.pratt


> >Personally, I think the best approach is to stick with the existing C
> >convention that everyone is already well familiar with, and have a
> >separate errno variable. This means we can then have functions return
> >pointers etc rather than having to pass them by reference, which is
> >undeniably ugly. 
> >  
> >
> There's only one problem with this: thread-safety.  I believe 
> errno is 
> commonly implemented in thread-local storage.  We'd have to 
> jump through major hoops to get our own proper errno.

No -- We want to use the normal libc errno, like other libraries!

Ian


-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_idh82&alloc_id\x15148&op=click

^ permalink raw reply	[flat|nested] 36+ messages in thread
* RE: [PATCH] libxen-3.0 (libxc rewrite)
@ 2005-03-22 16:00 Ian Pratt
  2005-03-22 16:13 ` Anthony Liguori
  0 siblings, 1 reply; 36+ messages in thread
From: Ian Pratt @ 2005-03-22 16:00 UTC (permalink / raw)
  To: Anthony Liguori, Christian.Limpach; +Cc: xen-devel, ian.pratt

> >Why -errno?  What's wrong with regular errno, like used everywhere
> >else in userspace?
> >  
> errno's a global variable and it's way to easy to lose it's 
> value.  For 
> instance:
> 
> if (read(fd, buffer, sizeof(buffer)) == -1) {
>     close(fd);
>     perror("read");
> }
> 
> Doesn't do what you'd expect.  It gets particularly hairy when you're 
> not sure what functions modify errno and which functions don't.

Personally, I think the best approach is to stick with the existing C
convention that everyone is already well familiar with, and have a
separate errno variable. This means we can then have functions return
pointers etc rather than having to pass them by reference, which is
undeniably ugly. 

I notice that you store the fd of the priv_cmd in a static variable. I
guess this is OK, but I think I still prefer a way of explicit way of
closing the fd. You'd also have to be a little bit careful about someone
forking then two guys trying to open the fd at the same time.

Ian



-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_idh82&alloc_id\x15148&op=click

^ permalink raw reply	[flat|nested] 36+ messages in thread
* RE: [PATCH] libxen-3.0 (libxc rewrite)
@ 2005-03-22 15:13 Ian Pratt
  0 siblings, 0 replies; 36+ messages in thread
From: Ian Pratt @ 2005-03-22 15:13 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: xen-devel, ian.pratt

> It seems that the RPMS are part of the standard FC3 distro. 
> 
> http://download.fedora.redhat.com/pub/fedora/linux/core/3/i386
> /os/Fedora/RPMS/Pyrex-0.9.2.1-2.noarch.rpm

Capital 'P' in Pyrex. How annoying...

Looks like its not part of FC2, but I guess we could live with this.
 
> >Do you reckon you could get xend and friends building 
> against the pyrex
> >wrapped libraries? 
> >  
> >
> Sure, it would take a bit more work though.  I've not spent 
> much time on the python interfaces.

Given that at least 2.1 is going to be based on xend, I think this would
be a worthwhile thing to do.

Ian


-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_idh82&alloc_id\x15148&op=click

^ permalink raw reply	[flat|nested] 36+ messages in thread
* RE: [PATCH] libxen-3.0 (libxc rewrite)
@ 2005-03-22  9:01 Ian Pratt
  2005-03-22 15:03 ` Anthony Liguori
  0 siblings, 1 reply; 36+ messages in thread
From: Ian Pratt @ 2005-03-22  9:01 UTC (permalink / raw)
  To: Anthony Liguori, xen-devel; +Cc: ian.pratt


> I've been doing a lot of work on libxc.  I've got it to the 
> point that 
> I'm ready to share.  Below are the major changes.  Feedback 
> is greatly 
> appreciated, especially with respect to things that would be required 
> for it to be integrated into the xen-unstable tree.
> 
>  o Rename libxc => libxen
>  o Use pkg-config to control versioning and parallel installs
>  o Use autoconf to detect dependencies, provide separate build 
> directory, cross-compile
>  o Use doxygen to autogenerate HTML documentation
>  o Organize hypercalls by groups in separate headers (dom.h, 
> evtchn.h, 
> etc.).
>  o Provide consistent error semantics for all functions (-errno is 
> returned on error).
>  o Use pyrex to autogenerate python bindings
>  o Provide high-level python interface (Xen() and Domain() classes 
> instead of direct hypercalls)

Is there a good place to get pyrexc from? I couldn't obviously spot an
RPM in FC2 or FC3.

I've built the C stuff and will look through it. There are a bunch of
semantic changes we want to make to the dom0 op interface (SMP and misc
cleanups, finer grained access control etc), but it might make sense to
integrate your stuff first.

Do you reckon you could get xend and friends building against the pyrex
wrapped libraries? 

Ian






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 36+ messages in thread
* [PATCH] libxen-3.0 (libxc rewrite)
@ 2005-03-21 21:25 Anthony Liguori
  2005-03-22  3:33 ` Jacob Gorm Hansen
                   ` (2 more replies)
  0 siblings, 3 replies; 36+ messages in thread
From: Anthony Liguori @ 2005-03-21 21:25 UTC (permalink / raw)
  To: xen-devel

Hi all,

I've been doing a lot of work on libxc.  I've got it to the point that 
I'm ready to share.  Below are the major changes.  Feedback is greatly 
appreciated, especially with respect to things that would be required 
for it to be integrated into the xen-unstable tree.

 o Rename libxc => libxen
 o Use pkg-config to control versioning and parallel installs
 o Use autoconf to detect dependencies, provide separate build 
directory, cross-compile
 o Use doxygen to autogenerate HTML documentation
 o Organize hypercalls by groups in separate headers (dom.h, evtchn.h, 
etc.).
 o Provide consistent error semantics for all functions (-errno is 
returned on error).
 o Use pyrex to autogenerate python bindings
 o Provide high-level python interface (Xen() and Domain() classes 
instead of direct hypercalls)

Below is a URL for a tarball and another URL for the doxygen generate 
documentation.

http://www.cs.utexas.edu/users/aliguori/libxen-3.0.0.tar.gz

http://www.cs.utexas.edu/users/aliguori/libxen-3.0.0/files.html

Regards,
Anthony Liguori

Signed-off-by: Anthony Liguori


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2005-03-22 22:18 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-22 17:21 [PATCH] libxen-3.0 (libxc rewrite) Ian Pratt
2005-03-22 17:31 ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2005-03-22 16:25 Ian Pratt
2005-03-22 16:00 Ian Pratt
2005-03-22 16:13 ` Anthony Liguori
2005-03-22 16:29   ` Nivedita Singhvi
2005-03-22 16:34     ` Anthony Liguori
2005-03-22 16:39       ` Steven Hand
2005-03-22 15:13 Ian Pratt
2005-03-22  9:01 Ian Pratt
2005-03-22 15:03 ` Anthony Liguori
     [not found]   ` <1111504492.20157.26.camel@bree.local.net>
2005-03-22 15:18     ` Anthony Liguori
2005-03-22 15:31       ` Jeremy Katz
2005-03-22 15:55         ` Anthony Liguori
2005-03-22 16:25           ` Jeremy Katz
2005-03-22 21:58             ` Jeremy Katz
2005-03-22 22:18               ` Anthony Liguori
2005-03-21 21:25 Anthony Liguori
2005-03-22  3:33 ` Jacob Gorm Hansen
2005-03-22  4:24   ` Anthony Liguori
2005-03-22 19:28   ` Adam Heath
2005-03-22 20:12     ` Jacob Gorm Hansen
2005-03-22 11:02 ` Christian Limpach
2005-03-22 15:04   ` Anthony Liguori
2005-03-22 16:01     ` Christian Limpach
2005-03-22 16:06       ` Anthony Liguori
2005-03-22 16:13         ` Christian Limpach
2005-03-22 16:21           ` Anthony Liguori
2005-03-22 16:41             ` Christian Limpach
2005-03-22 17:05               ` Anthony Liguori
2005-03-22 17:28                 ` Keir Fraser
2005-03-22 17:32                 ` Ronald G. Minnich
2005-03-22 17:47                 ` Christian Limpach
2005-03-22 17:53                   ` Anthony Liguori
2005-03-22 13:50 ` Keir Fraser
2005-03-22 15:16   ` Anthony Liguori

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.