From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Hollis Blanchard <hollis-yUx37fBWTUITNcAmw9vGhQ@public.gmane.org>
Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org
Subject: Re: [Qemu-devel] Machine config files
Date: Sat, 15 Nov 2008 17:52:25 +1100 [thread overview]
Message-ID: <20081115065225.GF6629@yookeroo.seuss> (raw)
In-Reply-To: <fb412d760811140954j3252216cj226805ecfc002ffd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Fri, Nov 14, 2008 at 11:54:24AM -0600, Hollis Blanchard wrote:
> On Thu, Nov 13, 2008 at 9:32 PM, Paul Brook <paul-qD8j1LwMmJjtCj0u4l0SBw@public.gmane.org> wrote:
> > It's come up in other contexts recently, so I think it's worth mentioning that
> > I am currently working on adding a machine config file support to qemu.
> >
> > I am focusing on the board setup side of things, rather than the user-level
> > config side. My goal is to come up with a system that will allow e.g. the
> > entirety of realview.c and gumstix.c to be eliminated. Currently this is
> > based this round Flattened Device Trees (as used by ppc-linux).
> >
> > I have looked at the bits that Fabrice did a while ago. While that contains
> > some good ideas (which I will probably steal!) it is approaching the problem
> > from a somewhat different direction. FTDs are a much better fit for some of
> > my requirements (e.g. being able to pass the config through to the guest OS).
> >
> > I haven't entirely figured out how this will interact with user config (in
> > particular user-pluggable devices like PCI NICs), but I think I can come up
> > with something fairly sensible.
>
> Sounds great! For what it's worth, in the PowerPC KVM patches that
> I'll be posting here soon, we also use a flat device tree and pass it
> to the guest. We start with a template .dtb file in pc-bios/, then
> modify things like memory nodes at runtime based on qemu's command
> line options.
>
> One practical consideration is that libfdt isn't generally available
> as a standalone package. I requested that Debian and Fedora create
> packages for it, and they agreed, but those obviously aren't available
> in older versions or other Linux distributions.
Yeah, I probably should have been a bit more active to try to get dtc
and libfdt packaged for the various distros. Oh well, they'll get it
eventually.
> In the meantime, we could either include a libfdt snapshot in qemu
> (which is how it was originally intended to be used), or require users
> to build and install the package from source.
Well.. libfdt is designed to be easy to embed in other projects so
that it can be incorporated into things like embedded bootloaders
which will usually have interesting linking requirements. For a
userspace application like this it would be nicer to use a system
version, still, merging a snapshot is a reasonable approach for the
interim until libfdt is more widely packaged.
It would be good to make sure, though, that you merge it in such a way
that it's easy to update from upstream. Again, libfdt is laid out so
that this should be easy.
If you want extra things in libfdt that would be convenient for you,
just ask. The idea is that we build libfdt's features based on what
people want my way of fdt manipulation.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2008-11-15 6:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200811140332.14093.paul@codesourcery.com>
[not found] ` <200811140332.14093.paul-qD8j1LwMmJjtCj0u4l0SBw@public.gmane.org>
2008-11-14 17:54 ` [Qemu-devel] Machine config files Hollis Blanchard
[not found] ` <fb412d760811140954j3252216cj226805ecfc002ffd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-11-15 6:52 ` David Gibson [this message]
[not found] ` <f43fc5580811141104v3b6296b0i575693ba944badbb@mail.gmail.com>
[not found] ` <491DD188.6000603@codemonkey.ws>
[not found] ` <491DD188.6000603-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2008-11-14 19:51 ` Hollis Blanchard
2008-11-14 20:11 ` Anthony Liguori
[not found] ` <491DDB74.5070701-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2008-11-14 21:39 ` [Qemu-devel] " Hollis Blanchard
2008-11-14 21:58 ` Anthony Liguori
2008-11-15 0:13 ` Paul Brook
[not found] ` <200811150013.03865.paul-qD8j1LwMmJjtCj0u4l0SBw@public.gmane.org>
2008-11-15 6:45 ` [Qemu-devel] " David Gibson
[not found] ` <200811141351.40613.hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2008-11-15 6:58 ` David Gibson
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=20081115065225.GF6629@yookeroo.seuss \
--to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
--cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
--cc=hollis-yUx37fBWTUITNcAmw9vGhQ@public.gmane.org \
--cc=qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.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.