From: Gleb Natapov <gleb@redhat.com>
To: David Ahern <dsahern@gmail.com>
Cc: KVM mailing list <kvm@vger.kernel.org>
Subject: Re: use of PMU in guest generates messages in host
Date: Thu, 12 Jan 2012 16:14:10 +0200 [thread overview]
Message-ID: <20120112141410.GZ2167@redhat.com> (raw)
In-Reply-To: <4F0EE7E4.9090509@gmail.com>
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.
next prev parent reply other threads:[~2012-01-12 14:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-11 20:47 use of PMU in guest generates messages in host David Ahern
2012-01-12 6:26 ` Gleb Natapov
2012-01-12 14:02 ` David Ahern
2012-01-12 14:14 ` Gleb Natapov [this message]
2012-01-12 17:07 ` David Ahern
2012-01-12 17:17 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120112141410.GZ2167@redhat.com \
--to=gleb@redhat.com \
--cc=dsahern@gmail.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox