From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB2BU-00031F-H0 for qemu-devel@nongnu.org; Mon, 10 Sep 2012 07:29:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB2BO-0005c4-Ma for qemu-devel@nongnu.org; Mon, 10 Sep 2012 07:29:44 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:33480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB2BO-0005bw-HD for qemu-devel@nongnu.org; Mon, 10 Sep 2012 07:29:38 -0400 Received: by pbbrp12 with SMTP id rp12so1091954pbb.4 for ; Mon, 10 Sep 2012 04:29:37 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <504DCF1A.1@redhat.com> Date: Mon, 10 Sep 2012 13:29:30 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <5034F587.4000403@dlhnet.de> <5048BA0F.3070300@redhat.com> <504DC9BC.1060407@dlhnet.de> In-Reply-To: <504DC9BC.1060407@dlhnet.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: Avi Kivity , "kvm@vger.kernel.org" , "qemu-devel@nongnu.org" 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; } Looks like we need to emulate it since memtest only looks at the cpuid to detect an integrated memory controller. What does this return for you? dd if=/dev/cpu/0/msr skip=$((0x194)) bs=8 count=1 | xxd dd if=/dev/cpu/0/msr skip=$((0xCE)) bs=8 count=1 | xxd