qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Christopher Covington <cov@codeaurora.org>
Cc: Liviu Ionescu <ilg@livius.net>, QEMU Developers <Qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Better Cortex-M support?
Date: Wed, 29 Oct 2014 14:55:38 +0000	[thread overview]
Message-ID: <CAFEAcA8W36vXbhgyZvOCuMH30zZsMiAbMNoQL8c8AAsVuQtzHw@mail.gmail.com> (raw)
In-Reply-To: <5450EB82.3000205@codeaurora.org>

On 29 October 2014 13:28, Christopher Covington <cov@codeaurora.org> wrote:
> I've sometimes thought it might be cool if QEMU could consume a DTB and
> emulate whatever is described, assuming the devices and configurations are
> supported. I've yet to come up with a real problem to motivate this
> "solution", though.

This has been suggested before, but unfortunately it's not really
feasible except in certain constrained scenarios (for instance
the Xilinx work Andreas mentioned, where as I understand it they
have one tool that generates the DTB and the FPGA they're trying
to model and so it's easy to be sure the DTB has all the necessary
information).

The fundamental issue is that a DTB is basically a data structure
controlled by the kernel -- it contains all the information the
kernel needs to know about how the hardware is configured and
wired up together, where the kernel can't dynamically probe for it.
The information QEMU needs to know to be able to model a board is
related but not the same (and why would the kernel people modify
their device tree files to add information that only QEMU cares
about?) So it sounds nice but in practice it gets very quickly
into a morass of problems I think.

[To take one example, boards with CPUs that support TrustZone
may have devices that appear only in the Secure world, but there's
no way in a device tree to indicate this. The kernel doesn't
care because it only executes in one world and only needs to
know about the devices that exist there.]

-- PMM

  parent reply	other threads:[~2014-10-29 14:56 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-28 10:43 [Qemu-devel] Better Cortex-M support? Liviu Ionescu
2014-10-28 12:22 ` Peter Maydell
2014-10-28 12:40   ` Liviu Ionescu
2014-10-28 12:45     ` Peter Maydell
2014-10-28 12:52       ` Liviu Ionescu
2014-10-28 12:57         ` Peter Maydell
2014-10-28 13:23           ` Liviu Ionescu
2014-10-28 13:45             ` Peter Maydell
2014-10-28 13:54               ` Liviu Ionescu
2014-10-28 14:18                 ` Peter Maydell
2014-10-28 14:37                   ` Liviu Ionescu
2014-10-28 14:40                     ` Peter Maydell
2014-10-28 14:50                       ` Liviu Ionescu
2014-10-28 14:59                         ` Peter Maydell
2014-10-28 15:03                           ` Peter Maydell
2014-10-28 15:22                             ` Liviu Ionescu
2014-10-28 15:38                               ` Peter Maydell
2014-10-28 16:38                                 ` Liviu Ionescu
2014-10-28 17:08                                   ` Peter Maydell
2014-10-29  7:17                                     ` Liviu Ionescu
2014-10-29 13:28                                     ` Christopher Covington
2014-10-29 14:48                                       ` Andreas Färber
2014-10-29 14:55                                       ` Peter Maydell [this message]
2014-10-29 15:11                       ` Paolo Bonzini
2014-10-29 15:18                         ` Liviu Ionescu
2014-10-29 15:31                           ` Paolo Bonzini
2014-10-29 16:37                             ` Liviu Ionescu
2014-10-29 18:13                               ` Paolo Bonzini
2014-10-29  7:03                   ` Liviu Ionescu
2014-10-29 10:31                     ` Peter Maydell
2014-10-29 12:01                       ` Liviu Ionescu
2014-11-04 12:05 ` Fabien Chouteau
2014-11-04 12:19   ` Alistair Francis
2014-11-11 21:56 ` Liviu Ionescu
2014-11-11 23:08   ` Peter Maydell
2014-11-12 12:50     ` Liviu Ionescu
2014-11-12 13:02       ` Peter Maydell
2014-11-12 13:43         ` Liviu Ionescu
2014-11-12 13:51           ` Peter Maydell
2014-11-12 14:23             ` Liviu Ionescu
2014-11-13  0:11               ` Alistair Francis
2014-11-13  7:48                 ` Liviu Ionescu
2014-11-14  1:01                   ` Alistair Francis
2014-11-14  7:32                     ` Liviu Ionescu
2014-12-01  0:39                       ` Alistair Francis

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=CAFEAcA8W36vXbhgyZvOCuMH30zZsMiAbMNoQL8c8AAsVuQtzHw@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=Qemu-devel@nongnu.org \
    --cc=cov@codeaurora.org \
    --cc=ilg@livius.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;
as well as URLs for NNTP newsgroup(s).