WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] [PATCH] Arch-neutral balloon driver

To: "Hollis Blanchard" <hollisb@xxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] Arch-neutral balloon driver
From: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Date: Wed, 7 Dec 2005 15:05:02 -0800
Cc: Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 07 Dec 2005 23:05:43 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcX7eFQLSYgsp5cIQHCHCdXjH801OAACQYOw
Thread-topic: [Xen-devel] [PATCH] Arch-neutral balloon driver
> > +   if (xen_init() < 0)
> > +           return -1;
> > +
> 
> I had some suggestions to obviate this "xen_init()" stuff; 
> you can read them again at  
> http://lists.xensource.com/archives/html/xen-devel/2005-09/ 
> msg00881.html . I see that xen_init() was introduced anyways, but I  
> would not like to see it spread. Instead let's correct the 
> problem it's working around.

While I'm sympathetic to your argument, I'd prefer for xen_init
to be replaced at some point in the future when more major
surgery is done on the drivers.  In the meantime, it has the
advantage that:

1) It has zero impact on Xen/x86.
2) It serves two purposes on Xen/ia64:
   a) ensures that certain xen driver init routines execute
      before other xen driver init routines
   b) returns a no-impact failure if called on a kernel that
      is not running on Xen (is running on bare metal)

It could be argued that we are now "post-3.0", but these are
really just minor cleanups on (pre-)3.0 drivers to get networking
working on Xen/ia64, preferably on 3.0.x.  So I'll be submitting
a patch to add it to netback also.

> > +// for drivers/xen/balloon/balloon.c
> 
> C++ comment

Good point.
 
> Other than that this looks ok to me. I think your mailer 
> line-wrapped  
> the patch though.

Stupid Outlook. :-(  Keir, should I resend as an attachment?

Thanks,
Dan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>