From patchwork Thu Aug 6 08:07:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 39550 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 n7688tB3005856 for ; Thu, 6 Aug 2009 08:08:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752729AbZHFIH6 (ORCPT ); Thu, 6 Aug 2009 04:07:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751935AbZHFIH4 (ORCPT ); Thu, 6 Aug 2009 04:07:56 -0400 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 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 n7687sHg031836; Thu, 6 Aug 2009 04:07:54 -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 n7687qsO021540; Thu, 6 Aug 2009 04:07:53 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 6D0EB18D467; Thu, 6 Aug 2009 11:07:52 +0300 (IDT) Date: Thu, 6 Aug 2009 11:07:52 +0300 From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH] APIC id reporting is broken. Message-ID: <20090806080752.GM4764@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 It was broken by commit 55b23c7377c9f9f0b4a4b90950f0e18b26ac45e8. APIC_ID is handled by default clause anyway so remove the special handling. 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 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");