aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/lapic.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-07-08 04:26:54 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:33:14 -0400
commit4088bb3caee82086fd85a844604274f6237f66a7 (patch)
treea02f6b54251aafe2fdf9272f2a574a007231fcb2 /arch/x86/kvm/lapic.c
parenta1b37100d9e29c1f8dc3e2f5490a205c80180e01 (diff)
KVM: silence lapic kernel messages that can be triggered by a guest
Some Linux versions (f8) try to read EOI register that is write only. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
-rw-r--r--arch/x86/kvm/lapic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index 5d697602048b..66122bfc74a9 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -597,14 +597,14 @@ static int apic_reg_read(struct kvm_lapic *apic, u32 offset, int len,
597 static const u64 rmask = 0x43ff01ffffffe70cULL; 597 static const u64 rmask = 0x43ff01ffffffe70cULL;
598 598
599 if ((alignment + len) > 4) { 599 if ((alignment + len) > 4) {
600 printk(KERN_ERR "KVM_APIC_READ: alignment error %x %d\n", 600 apic_debug("KVM_APIC_READ: alignment error %x %d\n",
601 offset, len); 601 offset, len);
602 return 1; 602 return 1;
603 } 603 }
604 604
605 if (offset > 0x3f0 || !(rmask & (1ULL << (offset >> 4)))) { 605 if (offset > 0x3f0 || !(rmask & (1ULL << (offset >> 4)))) {
606 printk(KERN_ERR "KVM_APIC_READ: read reserved register %x\n", 606 apic_debug("KVM_APIC_READ: read reserved register %x\n",
607 offset); 607 offset);
608 return 1; 608 return 1;
609 } 609 }
610 610