public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Hollis Blanchard <hollisb@us.ibm.com>
To: Alexander Graf <agraf@suse.de>
Cc: kvm-devel <kvm-devel@lists.sourceforge.net>,
	kvm-ppc-devel <kvm-ppc-devel@lists.sourceforge.net>
Subject: Re: [kvm-ppc-devel] Top level kvm-userspace directory	getting	crowded ...	need new dir	for qemu dependencies
Date: Wed, 27 Feb 2008 14:22:19 -0600	[thread overview]
Message-ID: <1204143739.2532.89.camel@basalt> (raw)
In-Reply-To: <1D119042-CF06-49BC-ADCC-810072AC2DE5@suse.de>

On Wed, 2008-02-27 at 20:18 +0100, Alexander Graf wrote:
> On Feb 27, 2008, at 7:56 PM, Hollis Blanchard wrote:
> 
> > On Wed, 2008-02-27 at 17:48 +0100, Alexander Graf wrote:
> >> On Feb 27, 2008, at 5:34 PM, Avi Kivity wrote:
> >>
> >>> Hollis Blanchard wrote:
> >>>> It is a centrally co-ordinated effort, but it is not a package a
> >>>> distro
> >>>> would carry. It is code shared by anything that needs to load a
> >>>> PowerPC
> >>>> Linux kernel, for example: the kernel bootwrapper (part of the  
> >>>> Linux
> >>>> source tree), u-boot firmware, Xend, and now qemu.
> >>>>
> >>>> Accordingly, a libfdt.rpm simply doesn't make sense, and the code  
> >>>> is
> >>>> intended to be copied into any codebase that needs it.
> >>>>
> >>>
> >>> A static library  + headers (i.e. libfdt-devel.rpm) could have been
> >>> used, though Linux avoids external dependencies.
> >>
> >> Why don't you try to talk to the other possible users and create a
> >> version of the library, that at least can be packaged, even though  
> >> for
> >> now KVM would be the only user? Maybe others (unlikely Linux, maybe
> >> Xen, probably dtc) would like to have a central library for device
> >> trees too.
> >
> > I think it's obvious that Linux and uboot will never use this. Unless
> > someone steps up to continue PowerPC Xen development, neither will  
> > Xen.
> > So you've now narrowed down the use case to dtc (which is libfdt
> > upstream) and qemu.
> 
> and kvm.

== qemu

> Maybe OpenHackware as well. I don't know if there are more  
> projects that want to build/read device trees, but these are absolute  
> candidates.

Nope, OpenHackware is a real (albeit crappy) Open Firmware
implementation, so it has no need for libfdt.

(Open Firmware uses client->firmware callbacks to transfer data. The
"flat device tree" avoids the need for callbacks by packaging up all the
data into an standardized format. libfdt is a set of convenience
functions to work with that format.)

So again, we the potential users are qemu and dtc.

> > Whose problem are you trying to solve? It doesn't seem to be one that
> > any existing users have. If you want to push it, you should probably
> 
> I am seeing the problems KVM has with qemu migrations and the problems  
> I have maintaining patches for both (KVM and qemu). I would greatly  
> appreciate if those two would not be forking that much. Xen is even  
> worse in that respect. Just read the qemu ML and search for patches  
> from Ian, who desperately tries to get Xen patches upstream to reduce  
> the forking.
> 
> So basically what I am concerned about is that forking is bad for most  
> people. There are cases where forking is the only chance to continue  
> development, but I don't see this is the case here. Currently there is  
> nobody who has a problem. 

There is no need to equate "copy" with "fork". We will not be modifying
this code, so there is no fork.

> But there is no problem in providing a library either, right?
>
> What exactly would improve if you provide a library in the very same  
> source tree you build your program or a different one? Either you  
> build both from source or you get packages for both. In the best case  
> you can even get a package for the library and only have to recompile  
> KVM. Nobody would want to maintain SDL in KVM, just because it uses it.

There is a problem. Who is going to maintain it and integrate it with
every distribution? It's not going to be me, it's apparently not going
to be you, and I imagine it's not going to be Avi.

> > propose it on linuxppc-dev@ozlabs.org , which is where libfdt is
> > discussed.
> 
> I guess I'm the wrong person to do that. I merely suggested that it's  
> not that bad of an idea.
>
> > I'm sure as hell not going to advocate creating a standalone library,
> > push it into every package that supports PowerPC, and then telling  
> > users
> > they must build on a supported version of a supported distribution.
> 
> Again, nothing changes between an external library and an internal  
> one, except for improved maintainability. Nobody was talking about  
> anything distribution specific. Currently no distribution I know of  
> bundles KVM for PPC anyway. And as soon as they do they will include  
> the library.

The internal library has better maintainability because you maintain
complete control.

> This is a question of taste though and I don't want to have this  
> ending as a flame war. So please just ask the other users if they like  
> the idea. As I lack real knowledge of device trees and PPC specifics,  
> I wouldn't make a good moderator.

The one piece of feedback I've gotten is (verbatim): "Unless they have a
really good reason why, I think it's pointless."

I agree, this is a ridiculous thing to be arguing over, and I expected
to spend my day actually being productive. Maybe the problem here is
really the abbreviation "lib" in the name. How about I just call it
"fdt"?

-- 
Hollis Blanchard
IBM Linux Technology Center


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

  reply	other threads:[~2008-02-27 20:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-25  6:50 Top level kvm-userspace directory getting crowded ... need new dir for qemu dependencies Jerone Young
2008-02-25  9:00 ` Avi Kivity
2008-02-26 17:24   ` Jerone Young
2008-02-27 10:59     ` Avi Kivity
2008-02-27 16:29     ` Hollis Blanchard
2008-02-27 16:34       ` Avi Kivity
2008-02-27 16:48         ` Alexander Graf
2008-02-27 16:59           ` Avi Kivity
2008-02-27 17:07             ` Alexander Graf
2008-02-27 18:56           ` Hollis Blanchard
2008-02-27 19:18             ` Alexander Graf
2008-02-27 20:22               ` Hollis Blanchard [this message]
2008-02-27 21:20                 ` [kvm-ppc-devel] " Alexander Graf
2008-02-27 22:19                   ` Hollis Blanchard
2008-02-27 22:32                     ` Alexander Graf
2008-03-02 18:38                     ` Luca Barbato
2008-02-27 19:25             ` Avi Kivity
2008-02-27 19:57               ` [kvm-ppc-devel] " Hollis Blanchard
2008-02-28  8:16                 ` Avi Kivity
2008-02-28 20:28                   ` Jerone Young
2008-03-02 16:41                     ` Avi Kivity

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=1204143739.2532.89.camel@basalt \
    --to=hollisb@us.ibm.com \
    --cc=agraf@suse.de \
    --cc=kvm-devel@lists.sourceforge.net \
    --cc=kvm-ppc-devel@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox