From: Avi Kivity <avi@redhat.com>
To: Jes Sorensen <Jes.Sorensen@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] Remove MSR_P6_{EVNTSEL0,PERFCTR0} from printk warning list.
Date: Thu, 01 Jul 2010 18:02:32 +0300 [thread overview]
Message-ID: <4C2CAE08.1050903@redhat.com> (raw)
In-Reply-To: <4C2CAA8A.5010105@redhat.com>
On 07/01/2010 05:47 PM, Jes Sorensen wrote:
> On 07/01/10 16:44, Avi Kivity wrote:
>
>> On 07/01/2010 05:41 PM, Jes Sorensen wrote:
>>
>>> Saw it, which is why I only suggest we remove EVNTSEL0 and PERFCTR0 but
>>> not the others. If the guest is expecting normal operation it is likely
>>> to use more than just the first.
>>>
>> Why is that?
>>
> Depends on usage obviously.
>
>
>>> People are reporting these triggering in dmesg for both Linux and
>>> Windows guests btw.
>>>
>>> We could put them so the two in question only trigger with a debug flag
>>> or something like that?
>>>
>>>
>> What values are the guests writing? Are they really expecting this
>> thing to work?
>>
>> What would it take to emulate those counters? They're supposed to be
>> relatively simple, no?
>>
>>
> Sometimes just 0x00, other times more advanced values. I'll have to dig
> into the manuals to figure out what it is:
>
> kvm: 9480: cpu0 unimplemented perfctr wrmsr: 0x186 data 0x130079
> kvm: 9480: cpu0 unimplemented perfctr wrmsr: 0xc1 data 0xffd7698c
> kvm: 9480: cpu0 unimplemented perfctr wrmsr: 0x186 data 0x530079
> kvm: 23682: cpu0 unimplemented perfctr wrmsr: 0x186 data 0x130079
> kvm: 23682: cpu0 unimplemented perfctr wrmsr: 0xc1 data 0xffd7699c
> kvm: 23682: cpu0 unimplemented perfctr wrmsr: 0x186 data 0x530079
>
> I'll try and figure out what it is.
>
Looks like it plays with the enable bit (22). We can ignore writes that
have bit 22 clear (as long as we remember the contents for a subsequent
rdmsr), but we can't just ignore something that's supposed to cause the
hardware to do something.
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2010-07-01 15:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-30 14:27 [PATCH] Remove MSR_P6_{EVNTSEL0,PERFCTR0} from printk warning list Jes.Sorensen
2010-07-01 14:38 ` Avi Kivity
2010-07-01 14:41 ` Jes Sorensen
2010-07-01 14:44 ` Avi Kivity
2010-07-01 14:47 ` Jes Sorensen
2010-07-01 15:02 ` Avi Kivity [this message]
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=4C2CAE08.1050903@redhat.com \
--to=avi@redhat.com \
--cc=Jes.Sorensen@redhat.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