Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQ5OD-0004uh-2g for qemu-devel@nongnu.org; Thu, 22 Jan 2009 14:38:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQ5OB-0004uV-VK for qemu-devel@nongnu.org; Thu, 22 Jan 2009 14:38:56 -0500 Received: from [199.232.76.173] (port=54763 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ5OB-0004uS-Pn for qemu-devel@nongnu.org; Thu, 22 Jan 2009 14:38:55 -0500 Received: from mail.gmx.net ([213.165.64.20]:50472) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LQ5OA-0006yH-On for qemu-devel@nongnu.org; Thu, 22 Jan 2009 14:38:55 -0500 Message-ID: From: "Sebastian Herbszt" References: <4977BA68.2070206@gmx.net> In-Reply-To: <4977BA68.2070206@gmx.net> Date: Thu, 22 Jan 2009 20:36:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [6392] Add BIOS fixes from KVM tree 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, Carl-Daniel Hailfinger Cc: Marcelo Tosatti , Avi Kivity 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. I am in the process of adding this to Bochs. I added checks for CPUID_MTRR and CPUID_MSR and those could go in on next merge. - Sebastian