Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945998AbbEON1G (ORCPT ); Fri, 15 May 2015 09:27:06 -0400 Received: from www.linutronix.de ([62.245.132.108]:41545 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030270AbbEON1B (ORCPT ); Fri, 15 May 2015 09:27:01 -0400 Date: Fri, 15 May 2015 15:27:11 +0200 (CEST) From: Thomas Gleixner To: Feng Wu cc: mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org, jiang.liu@linux.intel.com Subject: Re: [v4 3/3] x86, irq: Define a global vector for VT-d Posted-Interrupts In-Reply-To: <1430377608-10490-4-git-send-email-feng.wu@intel.com> Message-ID: References: <1430377608-10490-1-git-send-email-feng.wu@intel.com> <1430377608-10490-4-git-send-email-feng.wu@intel.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1120 Lines: 48 On Thu, 30 Apr 2015, Feng Wu wrote: > #ifdef CONFIG_HAVE_KVM > +void (*wakeup_handler_callback)(void); > +EXPORT_SYMBOL_GPL(wakeup_handler_callback); The matching entry in a header file is going to come later again? > /* > * Handler for POSTED_INTERRUPT_VECTOR. > */ > @@ -256,6 +259,30 @@ __visible void smp_kvm_posted_intr_ipi(struct pt_regs *regs) > > set_irq_regs(old_regs); > } > + > +/* > + * Handler for POSTED_INTERRUPT_WAKEUP_VECTOR. > + */ > +__visible void smp_kvm_posted_intr_wakeup_ipi(struct pt_regs *regs) > +{ > + struct pt_regs *old_regs = set_irq_regs(regs); > + > + ack_APIC_irq(); > + > + irq_enter(); > + > + exit_idle(); entering_ack_irq() please > + inc_irq_stat(kvm_posted_intr_wakeup_ipis); > + > + if (wakeup_handler_callback) > + wakeup_handler_callback(); > + > + irq_exit(); > + > + set_irq_regs(old_regs); > +} Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/