From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: memtest 4.20+ does not work with -cpu host Date: Mon, 10 Sep 2012 15:12:58 +0300 Message-ID: <504DD94A.2030703@redhat.com> References: <5034F587.4000403@dlhnet.de> <5048BA0F.3070300@redhat.com> <504DC9BC.1060407@dlhnet.de> <504DCF1A.1@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Peter Lieven , "qemu-devel@nongnu.org" , "kvm@vger.kernel.org" To: Paolo Bonzini Return-path: Received: from mx1.redhat.com ([209.132.183.28]:54449 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753408Ab2IJMNE (ORCPT ); Mon, 10 Sep 2012 08:13:04 -0400 In-Reply-To: <504DCF1A.1@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 09/10/2012 02:29 PM, Paolo Bonzini wrote: > Il 10/09/2012 13:06, Peter Lieven ha scritto: >> >> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_entry: vcpu 0 >> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_exit: reason MSR_READ rip >> 0x11478 info 0 0 >> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_msr: msr_read 194 = 0x0 (#GP) >> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_inj_exception: #GP (0x0) >> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_entry: vcpu 0 >> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_exit: reason TRIPLE_FAULT >> rip 0x11478 info 0 0 > > Memory controller MSR: > > static float getNHMmultiplier(void) > { > unsigned int msr_lo, msr_hi; > float coef; > > /* Find multiplier (by MSR) */ > /* First, check if Flexible Ratio is Enabled */ > rdmsr(0x194, msr_lo, msr_hi); > if((msr_lo >> 16) & 1){ > coef = (msr_lo >> 8) & 0xFF; > } else { > rdmsr(0xCE, msr_lo, msr_hi); > coef = (msr_lo >> 8) & 0xFF; > } > > return coef; > } > The SDM only mentions 0x194 as a machine check exception register (recorded R12). In the Architectural MSRs (how I love that name) section 18AH-197H are listed as reserved. In the Nehalem section they're not there at all. -- error compiling committee.c: too many arguments to function