From patchwork Thu Jan 8 10:45:32 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 1338 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 n08AgA1L019956 for ; Thu, 8 Jan 2009 02:42:11 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751010AbZAHKpl (ORCPT ); Thu, 8 Jan 2009 05:45:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754417AbZAHKpl (ORCPT ); Thu, 8 Jan 2009 05:45:41 -0500 Received: from mga03.intel.com ([143.182.124.21]:31460 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751748AbZAHKpi (ORCPT ); Thu, 8 Jan 2009 05:45:38 -0500 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 08 Jan 2009 02:45:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.37,233,1231142400"; d="scan'208";a="97714270" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.13.176]) by azsmga001.ch.intel.com with ESMTP; 08 Jan 2009 02:45:36 -0800 Received: from yasker by syang10-desktop with local (Exim 4.69) (envelope-from ) id 1LKsON-0000eD-KI; Thu, 08 Jan 2009 18:45:35 +0800 From: Sheng Yang To: Avi Kivity , Marcelo Tosatti Cc: kvm@vger.kernel.org, Sheng Yang Subject: [PATCH 4/7] KVM: Using ioapic_irqchip() macro for kvm_set_irq Date: Thu, 8 Jan 2009 18:45:32 +0800 Message-Id: <1231411535-2461-5-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.5.6.3 In-Reply-To: <1231411535-2461-1-git-send-email-sheng@linux.intel.com> References: <1231411535-2461-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 64ca4cf..f8b22a1 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