From: Michael Eager <eager@eagerm.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Internal documentation
Date: Wed, 12 Dec 2012 06:34:52 -0800 [thread overview]
Message-ID: <50C8960C.7070900@eagerm.com> (raw)
In-Reply-To: <20121212133932.GB16270@stefanha-thinkpad.redhat.com>
On 12/12/2012 05:39 AM, Stefan Hajnoczi wrote:
> On Tue, Dec 11, 2012 at 10:40:45AM -0800, Michael Eager wrote:
>> Is there any internal documentation for QEMU?
>
> Nothing up-to-date and complete.
>
>> I'm adding support for a new processor. I'm currently
>> adding semihosting support and a new command line option.
>> I find that I'm reading a lot of uncommented code and
>> trying to reverse engineer QEMU's design by reading how
>> various targets are implemented.
>
> Try the #qemu IRC channel on irc.oftc.net for specific questions.
Thanks. I'll try that.
> One nice thing is that, despite the lack of documentation or comments,
> the nature of QEMU is that there are often multiple examples (target
> CPUs, emulated devices, etc) similar to what you're trying to implement.
> Read them to see which core functions you'll need and how to call them.
I've been doing that. A lot. That's the reverse engineering I mentioned.
Any documentation about what the core functions do would be helpful.
My target is mostly working, but a lot of the development has been
stepping through execution of other targets to figure out execution
flow and why each implements similar features differently, then doing
the same with my target, trying to understand the differences. It's
much slower than reading a paragraph or two which says "to do this,
call this, register that, use these options".
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
next prev parent reply other threads:[~2012-12-12 14:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-11 18:40 [Qemu-devel] Internal documentation Michael Eager
2012-12-12 13:39 ` Stefan Hajnoczi
2012-12-12 14:34 ` Michael Eager [this message]
2012-12-12 15:00 ` Peter Maydell
2012-12-12 14:25 ` Andreas Färber
2012-12-12 14:57 ` Michael Eager
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=50C8960C.7070900@eagerm.com \
--to=eager@eagerm.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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.