From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: [PATCH] APIC id reporting is broken. Date: Thu, 6 Aug 2009 11:07:52 +0300 Message-ID: <20090806080752.GM4764@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: avi@redhat.com Return-path: Received: from mx2.redhat.com ([66.187.237.31]:52576 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752219AbZHFIHy (ORCPT ); Thu, 6 Aug 2009 04:07:54 -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 n7687tPp020236 for ; Thu, 6 Aug 2009 04:07:55 -0400 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: It was broken by commit 55b23c7377c9f9f0b4a4b90950f0e18b26ac45e8. APIC_ID is handled by default clause anyway so remove the special handling. Signed-off-by: Gleb Natapov diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 6c3cd2c..fdddf48 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -556,9 +556,6 @@ static u32 __apic_read(struct kvm_lapic *apic, unsigned int offset) return 0; switch (offset) { - case APIC_ID: - apic_get_reg(apic, offset); - break; case APIC_ARBPRI: printk(KERN_WARNING "Access APIC ARBPRI register " "which is for P6\n"); -- Gleb.