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

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


  • To: "Hollis Blanchard" <hollisb@xxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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


 


Rackspace

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