From patchwork Wed Jul 8 08:26:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 34574 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n688QxvJ009544 for ; Wed, 8 Jul 2009 08:26:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756376AbZGHI06 (ORCPT ); Wed, 8 Jul 2009 04:26:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756514AbZGHI05 (ORCPT ); Wed, 8 Jul 2009 04:26:57 -0400 Received: from mx2.redhat.com ([66.187.237.31]:42765 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756340AbZGHI05 (ORCPT ); Wed, 8 Jul 2009 04:26:57 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n688Qut1007136 for ; Wed, 8 Jul 2009 04:26:56 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n688QtbH019179; Wed, 8 Jul 2009 04:26:55 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n688QsFC014221; Wed, 8 Jul 2009 04:26:55 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 7A93718D479; Wed, 8 Jul 2009 11:26:54 +0300 (IDT) Date: Wed, 8 Jul 2009 11:26:54 +0300 From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH] silence kernel messages that can be triggered by a guest Message-ID: <20090708082654.GK28046@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Some Linux versions (f8) try to read EOI register that is write only. Signed-off-by: Gleb Natapov --- Gleb. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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; }