From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Lieven Subject: Re: memtest 4.20+ does not work with -cpu host Date: Mon, 10 Sep 2012 14:38:39 +0200 Message-ID: <504DDF4F.8090502@dlhnet.de> References: <5034F587.4000403@dlhnet.de> <5048BA0F.3070300@redhat.com> <504DC9BC.1060407@dlhnet.de> <504DCF1A.1@redhat.com> <504DD483.6050104@dlhnet.de> <504DD9F5.2040300@redhat.com> <20120910122120.GA20907@redhat.com> <504DDD37.5000804@dlhnet.de> <504DDDDA.9040001@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Paolo Bonzini , "qemu-devel@nongnu.org" , Gleb Natapov , "kvm@vger.kernel.org" To: Avi Kivity Return-path: In-Reply-To: <504DDDDA.9040001@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.org On 09/10/12 14:32, Avi Kivity wrote: > On 09/10/2012 03:29 PM, Peter Lieven wrote: >> On 09/10/12 14:21, Gleb Natapov wrote: >>> On Mon, Sep 10, 2012 at 02:15:49PM +0200, Paolo Bonzini wrote: >>>> Il 10/09/2012 13:52, Peter Lieven ha scritto: >>>>>> 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 >>>>> it only works without the skip. but the msr device returns all zeroes. >>>> Hmm, the strange API of the MSR device doesn't work well with dd (dd >>>> skips to 0x194 * 8 because bs is 8. You can try this program: >>>> >>> There is rdmsr/wrmsr in msr-tools. >> rdmsr returns it cannot read those MSRs. regardless if I use -cpu host >> or -cpu qemu64. > On the host. aaah ok: #rdmsr -0 0x194 0000000000011100 #rdmsr -0 0xce 00000c0004011103 Peter > From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB3GI-0004Kr-I7 for qemu-devel@nongnu.org; Mon, 10 Sep 2012 08:38:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB3GC-0003eY-KS for qemu-devel@nongnu.org; Mon, 10 Sep 2012 08:38:46 -0400 Received: from ssl.dlhnet.de ([91.198.192.8]:53209 helo=ssl.dlh.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB3GC-0003eT-EA for qemu-devel@nongnu.org; Mon, 10 Sep 2012 08:38:40 -0400 Message-ID: <504DDF4F.8090502@dlhnet.de> Date: Mon, 10 Sep 2012 14:38:39 +0200 From: Peter Lieven MIME-Version: 1.0 References: <5034F587.4000403@dlhnet.de> <5048BA0F.3070300@redhat.com> <504DC9BC.1060407@dlhnet.de> <504DCF1A.1@redhat.com> <504DD483.6050104@dlhnet.de> <504DD9F5.2040300@redhat.com> <20120910122120.GA20907@redhat.com> <504DDD37.5000804@dlhnet.de> <504DDDDA.9040001@redhat.com> In-Reply-To: <504DDDDA.9040001@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Avi Kivity Cc: Paolo Bonzini , "qemu-devel@nongnu.org" , Gleb Natapov , "kvm@vger.kernel.org" On 09/10/12 14:32, Avi Kivity wrote: > On 09/10/2012 03:29 PM, Peter Lieven wrote: >> On 09/10/12 14:21, Gleb Natapov wrote: >>> On Mon, Sep 10, 2012 at 02:15:49PM +0200, Paolo Bonzini wrote: >>>> Il 10/09/2012 13:52, Peter Lieven ha scritto: >>>>>> 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 >>>>> it only works without the skip. but the msr device returns all zeroes. >>>> Hmm, the strange API of the MSR device doesn't work well with dd (dd >>>> skips to 0x194 * 8 because bs is 8. You can try this program: >>>> >>> There is rdmsr/wrmsr in msr-tools. >> rdmsr returns it cannot read those MSRs. regardless if I use -cpu host >> or -cpu qemu64. > On the host. aaah ok: #rdmsr -0 0x194 0000000000011100 #rdmsr -0 0xce 00000c0004011103 Peter >