qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Internal documentation


From: Michael Eager
Subject: Re: [Qemu-devel] Internal documentation
Date: Wed, 12 Dec 2012 06:34:52 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0

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    address@hidden
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077





reply via email to

[Prev in Thread] Current Thread [Next in Thread]