public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: 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 17:38:02 +0300	[thread overview]
Message-ID: <4C2CA84A.4090506@redhat.com> (raw)
In-Reply-To: <1277908040-15087-1-git-send-email-Jes.Sorensen@redhat.com>

On 06/30/2010 05:27 PM, Jes.Sorensen@redhat.com wrote:
> From: Jes Sorensen<Jes.Sorensen@redhat.com>
>
> MSR_P6_EVNTSEL0 and MSR_P6_PERFCTR0 are used to probe for the P6 PMU
> for older family 6 CPUs, which is also the default in QEMU. Ie. per
> default we get the noise of these warnings in dmesg, confusing users
> for no reason.
>
>    

For the reason, see the comment above.  The guest may be trying to do 
something with the counters and expect them to work.  Without the 
warning we'd have no idea we are knowningly misemulating something.

> Signed-off-by: Jes Sorensen<Jes.Sorensen@redhat.com>
> ---
>   arch/x86/kvm/x86.c |    2 --
>   1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> index d0b9252..ac55b92 100644
> --- a/arch/x86/kvm/x86.c
> +++ b/arch/x86/kvm/x86.c
> @@ -1306,7 +1306,6 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data)
>   	 * which we perfectly emulate ;-). Any other value should be at least
>   	 * reported, some guests depend on them.
>   	 */
> -	case MSR_P6_EVNTSEL0:
>   	case MSR_P6_EVNTSEL1:
>   	case MSR_K7_EVNTSEL0:
>   	case MSR_K7_EVNTSEL1:
> @@ -1319,7 +1318,6 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data)
>   	/* at least RHEL 4 unconditionally writes to the perfctr registers,
>   	 * so we ignore writes to make it happy.
>   	 */
> -	case MSR_P6_PERFCTR0:
>   	case MSR_P6_PERFCTR1:
>   	case MSR_K7_PERFCTR0:
>   	case MSR_K7_PERFCTR1:
>    


-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2010-07-01 14:38 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 [this message]
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

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=4C2CA84A.4090506@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