From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Paul Brook <paul-qD8j1LwMmJjtCj0u4l0SBw@public.gmane.org>
Cc: Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>,
devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org,
Hollis Blanchard
<hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Subject: Re: [Qemu-devel] Machine config files
Date: Sat, 15 Nov 2008 17:45:03 +1100 [thread overview]
Message-ID: <20081115064503.GE6629@yookeroo.seuss> (raw)
In-Reply-To: <200811150013.03865.paul-qD8j1LwMmJjtCj0u4l0SBw@public.gmane.org>
On Sat, Nov 15, 2008 at 12:13:03AM +0000, Paul Brook wrote:
> > > Some translation code would be required for compatibility. For example,
> > > when the DTS has 128MB of memory, and the user invokes qemu with -m 256,
> > > now you need to update the device tree in order to pass it into the
> > > guest. That's pretty easy, but once you start talking about adding PCI
> > > devices it gets a little more difficult. I seem to recall this
> > > conversation was had on qemu-devel a little while back.
> >...
> > > Of course, *some* code would still be needed *somewhere* to load the
> > > kernel, initrd, set initial register state to point to those memory
> > > locations, etc. In the case of KVM on 440, we also need to override the
> > > DTS with the real host clock frequency. (This probably isn't necessary
> > > for qemu+TCG.)
> > >
> > > But yes, replacing all the pci_nic_init(), isa_mmio_init(),
> > > cpu_register_physical_memory(), etc could be automated by walking the
> > > device tree.
> >
> > Ok. This is starting to look interesting. Paul, what do you think of DTS?
>
> Things like kernel loading are easy, you just add a special device (which
> linux will ignore) specifying the relevant parameters. IMO it should be
> possible to use the same device tree for both linux and qemu, but it's ok to
> require some additional information on top of what linux currently requires.
Depending on exactly what you want to pass through, it may be
appropriate to use properties in /chosen for this.
--
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:45 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
[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 ` David Gibson [this message]
[not found] ` <200811141351.40613.hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2008-11-15 6:58 ` [Qemu-devel] " 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=20081115064503.GE6629@yookeroo.seuss \
--to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
--cc=anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org \
--cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
--cc=hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=paul-qD8j1LwMmJjtCj0u4l0SBw@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox