From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TimXL-0000RE-Fo for qemu-devel@nongnu.org; Wed, 12 Dec 2012 08:39:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TimXB-0001Lp-EB for qemu-devel@nongnu.org; Wed, 12 Dec 2012 08:39:47 -0500 Received: from mail-bk0-f45.google.com ([209.85.214.45]:64608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TimXB-0001LP-7I for qemu-devel@nongnu.org; Wed, 12 Dec 2012 08:39:37 -0500 Received: by mail-bk0-f45.google.com with SMTP id jk13so352825bkc.4 for ; Wed, 12 Dec 2012 05:39:35 -0800 (PST) Date: Wed, 12 Dec 2012 14:39:32 +0100 From: Stefan Hajnoczi Message-ID: <20121212133932.GB16270@stefanha-thinkpad.redhat.com> References: <50C77E2D.4030901@eagerm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50C77E2D.4030901@eagerm.com> Subject: Re: [Qemu-devel] Internal documentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Eager Cc: qemu-devel 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. 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. Stefan