From patchwork Wed Jan 7 10:42:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 1127 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 n07AdOno029859 for ; Wed, 7 Jan 2009 02:39:25 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751940AbZAGKmz (ORCPT ); Wed, 7 Jan 2009 05:42:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751599AbZAGKmy (ORCPT ); Wed, 7 Jan 2009 05:42:54 -0500 Received: from mga02.intel.com ([134.134.136.20]:9238 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbZAGKmw (ORCPT ); Wed, 7 Jan 2009 05:42:52 -0500 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 07 Jan 2009 02:38:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.37,225,1231142400"; d="scan'208";a="376354761" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.13.47]) by orsmga002.jf.intel.com with ESMTP; 07 Jan 2009 02:41:18 -0800 Received: from yasker by syang10-desktop with local (Exim 4.69) (envelope-from ) id 1LKVs7-0005ny-73; Wed, 07 Jan 2009 18:42:47 +0800 From: Sheng Yang To: Avi Kivity Cc: Marcelo Tosatti , kvm@vger.kernel.org, Sheng Yang Subject: [PATCH 04/10] KVM: Using ioapic_irqchip() macro for kvm_set_irq Date: Wed, 7 Jan 2009 18:42:40 +0800 Message-Id: <1231324966-22286-5-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.5.6.3 In-Reply-To: <1231324966-22286-1-git-send-email-sheng@linux.intel.com> References: <1231324966-22286-1-git-send-email-sheng@linux.intel.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Sheng Yang --- virt/kvm/irq_comm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/virt/kvm/irq_comm.c b/virt/kvm/irq_comm.c index 7460e7f..f5e2d2c 100644 --- a/virt/kvm/irq_comm.c +++ b/virt/kvm/irq_comm.c @@ -39,7 +39,7 @@ void kvm_set_irq(struct kvm *kvm, int irq_source_id, int irq, int level) * IOAPIC. So set the bit in both. The guest will ignore * writes to the unused one. */ - kvm_ioapic_set_irq(kvm->arch.vioapic, irq, !!(*irq_state)); + kvm_ioapic_set_irq(ioapic_irqchip(kvm), irq, !!(*irq_state)); #ifdef CONFIG_X86 kvm_pic_set_irq(pic_irqchip(kvm), irq, !!(*irq_state)); #endif