Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQ8Qd-0000zx-J1 for qemu-devel@nongnu.org; Thu, 22 Jan 2009 17:53:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQ8Qc-0000zh-WC for qemu-devel@nongnu.org; Thu, 22 Jan 2009 17:53:39 -0500 Received: from [199.232.76.173] (port=37636 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ8Qc-0000ze-TF for qemu-devel@nongnu.org; Thu, 22 Jan 2009 17:53:38 -0500 Received: from mail.gmx.net ([213.165.64.20]:43818) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LQ8Qc-0001cL-8a for qemu-devel@nongnu.org; Thu, 22 Jan 2009 17:53:38 -0500 Message-ID: <5145212075BC479892B6FB212939F2E3@FSCPC> From: "Sebastian Herbszt" References: <4977BA68.2070206@gmx.net> <20090122205314.GA5478@amt.cnet> <4978E1ED.90309@codemonkey.ws> In-Reply-To: <4978E1ED.90309@codemonkey.ws> Subject: Re: [Qemu-devel] [6392] Add BIOS fixes from KVM tree Date: Thu, 22 Jan 2009 23:51:28 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response 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: Anthony Liguori , qemu-devel@nongnu.org Cc: Carl-Daniel Hailfinger , Avi Kivity Anthony Liguori wrote: > Marcelo Tosatti wrote: >> On Thu, Jan 22, 2009 at 01:14:32AM +0100, Carl-Daniel Hailfinger wrote: >> >>> Hi, >>> >>> I'm sorry to say that, but my tests showed that >>> 0004_kvm-bios-add-mtrr-support.patch is buggy. It reads MSR_MTRRcap >>> unconditionally which is not allowed if the CPUID features do not have >>> CPUID_MTRR set. Real hardware will #GP in that case. >>> This was found by my MSR access tracing patch. >>> >>> Please add a check for the CPUID_MTRR feature bit before reading >>> MSR_MTRRcap. Thanks. >>> >> >> Attached, can you confirm it works for you, please? >> > > Please work with Sebastian on this. I'll just pull this fix in from > upstream Bochs once it's all integrated. I sent a combined patch to the bochs mailing list. It is also available at [1]. [1] http://article.gmane.org/gmane.comp.emulators.bochs.devel/8256 - Sebastian