From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: use of PMU in guest generates messages in host Date: Thu, 12 Jan 2012 16:14:10 +0200 Message-ID: <20120112141410.GZ2167@redhat.com> References: <4F0DF57B.5040500@gmail.com> <20120112062646.GQ2167@redhat.com> <4F0EE7E4.9090509@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: KVM mailing list To: David Ahern Return-path: Received: from mx1.redhat.com ([209.132.183.28]:4144 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753674Ab2ALOOM (ORCPT ); Thu, 12 Jan 2012 09:14:12 -0500 Content-Disposition: inline In-Reply-To: <4F0EE7E4.9090509@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Jan 12, 2012 at 07:02:12AM -0700, David Ahern wrote: > > On 01/11/2012 11:26 PM, Gleb Natapov wrote: > > On Wed, Jan 11, 2012 at 01:47:55PM -0700, David Ahern wrote: > >> Using latest kernel tree (e343a895a9f342f239c5e3c5ffc6c0b1707e6244) > >> which has KVM bits for using PMU in the guest. Host and guest are both > >> running Fedora 16, 64-bit, with this kernel. > >> > >> Running this command in the guest: > >> perf stat -ddd -- openssl speed aes > >> > >> Generates this in the host: > >> [74728.221863] kvm_set_msr_common: 2760 callbacks suppressed > >> [74728.221950] kvm: 28217: cpu2 unhandled wrmsr: 0x1a6 data f701 > >> [74728.222115] kvm: 28217: cpu2 unhandled wrmsr: 0x1a6 data f701 > >> [74728.222858] kvm: 28217: cpu2 unhandled wrmsr: 0x1a6 data f701 > >> [74728.223018] kvm: 28217: cpu2 unhandled wrmsr: 0x1a6 data f701 > >> [74728.223851] kvm: 28217: cpu2 unhandled wrmsr: 0x1a6 data f701 > >> [74728.224009] kvm: 28217: cpu2 unhandled wrmsr: 0x1a6 data f701 > >> [74728.224843] kvm: 28217: cpu2 unhandled wrmsr: 0x1a6 data f701 > >> [74728.224997] kvm: 28217: cpu2 unhandled wrmsr: 0x1a6 data f701 > >> [74728.225842] kvm: 28217: cpu2 unhandled wrmsr: 0x1a6 data f001 > >> [74728.226010] kvm: 28217: cpu2 unhandled wrmsr: 0x1a6 data f001 > >> > > This is MSR_OFFCORE_RSP_0 MSR which is not (yet?) supported. What is > > your host cpu and qemu command line? > > Host CPU: Intel(R) Xeon(R) CPU E5540 @ 2.53GHz > and '-cpu host' is used on the qemu command line. > Use "-cpu host,model=29" should avid this message. We need to teach guest to not use non architectural MSRs. -- Gleb.