From patchwork Mon Dec 3 07:01:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Yang Z" X-Patchwork-Id: 1832151 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 3CBB6DF254 for ; Mon, 3 Dec 2012 07:05:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754104Ab2LCHFn (ORCPT ); Mon, 3 Dec 2012 02:05:43 -0500 Received: from mga14.intel.com ([143.182.124.37]:10141 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751551Ab2LCHFi (ORCPT ); Mon, 3 Dec 2012 02:05:38 -0500 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 02 Dec 2012 23:05:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,204,1355126400"; d="scan'208";a="225696329" Received: from yang-desktop.sh.intel.com ([10.239.13.107]) by azsmga001.ch.intel.com with ESMTP; 02 Dec 2012 23:05:22 -0800 From: Yang Zhang To: kvm@vger.kernel.org Cc: gleb@redhat.com, Yang Zhang Subject: [PATCH v3 1/4] x86: PIT connects to pin 2 of IOAPIC Date: Mon, 3 Dec 2012 15:01:01 +0800 Message-Id: <1354518064-3066-2-git-send-email-yang.z.zhang@intel.com> X-Mailer: git-send-email 1.7.1.1 In-Reply-To: <1354518064-3066-1-git-send-email-yang.z.zhang@intel.com> References: <1354518064-3066-1-git-send-email-yang.z.zhang@intel.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org When PIT connects to IOAPIC, it route to pin 2 not pin 0. Signed-off-by: Yang Zhang --- virt/kvm/ioapic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index cfb7e4d..166c450 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c @@ -181,7 +181,7 @@ static int ioapic_deliver(struct kvm_ioapic *ioapic, int irq) #ifdef CONFIG_X86 /* Always delivery PIT interrupt to vcpu 0 */ - if (irq == 0) { + if (irq == 2) { irqe.dest_mode = 0; /* Physical mode. */ /* need to read apic_id from apic regiest since * it can be rewritten */