From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L43jw-0006QZ-Hb for qemu-devel@nongnu.org; Sat, 22 Nov 2008 20:26:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L43ju-0006QN-5F for qemu-devel@nongnu.org; Sat, 22 Nov 2008 20:26:19 -0500 Received: from [199.232.76.173] (port=53648 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L43jt-0006QK-WF for qemu-devel@nongnu.org; Sat, 22 Nov 2008 20:26:18 -0500 Received: from mail.gmx.net ([213.165.64.20]:36054) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L43ju-0002cw-Dl for qemu-devel@nongnu.org; Sat, 22 Nov 2008 20:26:18 -0500 Message-ID: <4928B135.9020508@gmx.net> Date: Sun, 23 Nov 2008 02:26:13 +0100 From: Carl-Daniel Hailfinger MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] x86 MTRR access dumping References: <4927288D.3050707@gmx.net> In-Reply-To: <4927288D.3050707@gmx.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 21.11.2008 22:30, Carl-Daniel Hailfinger wrote: > Some x86 BIOS and lots of x86 operating systems use MSRs not currently > implemented in Qemu. The most notable unimplemented MSRs are the MTRRs > (Memory Type Range Registers). This patch against latest svn dumps any > accesses to unhandled MSRs and decodes the MTRR accesses. > > I used this code to check MTRR accesses of coreboot (a replacement > firmware for x86 BIOS) inside qemu and the patch works fine. > > Of course, writing these MTRRs should be persistent, so their state > needs to be saved somehow. > > I thought I'd post my current code and ask for comments before I continue. > Any comments on coding style, technical restrictions and other stuff are > appreciated. > Sample output from a recent ReactOS boot: Unhandled MSR 0x0000008b was written: 0x0000000000000000 Unhandled MSR 0x0000008b was read Regards, Carl-Daniel -- http://www.hailfinger.org/