kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] silence kernel messages that can be triggered by a guest
@ 2009-07-08  8:26 Gleb Natapov
  2009-07-14 23:11 ` Marcelo Tosatti
  0 siblings, 1 reply; 2+ messages in thread
From: Gleb Natapov @ 2009-07-08  8:26 UTC (permalink / raw)
  To: avi; +Cc: kvm

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.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] silence kernel messages that can be triggered by a guest
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2009-07-14 23:11 UTC (permalink / raw)
  To: Gleb Natapov; +Cc: avi, kvm

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-14 23:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).