All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: avi@redhat.com, kvm@vger.kernel.org
Subject: Re: [PATCH] silence kernel messages that can be triggered by a guest
Date: Tue, 14 Jul 2009 20:11:17 -0300	[thread overview]
Message-ID: <20090714231117.GA15759@amt.cnet> (raw)
In-Reply-To: <20090708082654.GK28046@redhat.com>

On Wed, Jul 08, 2009 at 11:26:54AM +0300, Gleb Natapov wrote:
> Some Linux versions (f8) try to read EOI register that is write only.
> 
> Signed-off-by: Gleb Natapov <gleb@redhat.com>
> diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
> index ccafe0d..6b5dad4 100644
> --- a/arch/x86/kvm/lapic.c
> +++ b/arch/x86/kvm/lapic.c
> @@ -590,14 +590,14 @@ static int apic_reg_read(struct kvm_lapic *apic, u32 offset, int len,
>  	static const u64 rmask = 0x43ff01ffffffe70cULL;
>  
>  	if ((alignment + len) > 4) {
> -		printk(KERN_ERR "KVM_APIC_READ: alignment error %x %d\n",
> -				offset, len);
> +		apic_debug("KVM_APIC_READ: alignment error %x %d\n",
> +			   offset, len);
>  		return 1;
>  	}
>  
>  	if (offset > 0x3f0 || !(rmask & (1ULL << (offset >> 4)))) {
> -		printk(KERN_ERR "KVM_APIC_READ: read reserved register %x\n",
> -				offset);
> +		apic_debug("KVM_APIC_READ: read reserved register %x\n",
> +			   offset);
>  		return 1;
>  	}
>  
> --
> 			Gleb.

Applied, thanks.


      reply	other threads:[~2009-07-14 23:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08  8:26 [PATCH] silence kernel messages that can be triggered by a guest Gleb Natapov
2009-07-14 23:11 ` Marcelo Tosatti [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=20090714231117.GA15759@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=avi@redhat.com \
    --cc=gleb@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.