Skip to contentSkip to conversation

silence kernel messages that can be triggered by a guest

PATCH Applied Gleb Natapov 2 participants 2 messages Jul 8, 2009 – Jul 14, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 silence kernel messages that can be triggered by a guest

Some Linux versions (f8) try to read EOI register that is write only.

arch/x86/kvm/lapic.c +4 -4
index ccafe0d..6b5dad4 100644
@@ -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.

#1 lore raw
Quoted 27 lines · Gleb Natapov

Some Linux versions (f8) try to read EOI register that is write only.

arch/x86/kvm/lapic.c +4 -5
index ccafe0d..6b5dad4 100644
@@ -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;
 	}
 
--
Quoted 1 line

Gleb.

Applied, thanks.