From: Thomas Gleixner <tglx@linutronix.de>
To: Feng Wu <feng.wu@intel.com>
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
Date: Fri, 15 May 2015 15:27:11 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.11.1505151520260.4225@nanos> (raw)
In-Reply-To: <1430377608-10490-4-git-send-email-feng.wu@intel.com>
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
next prev parent reply other threads:[~2015-05-15 13:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-30 7:06 [v4 0/3] prerequisite changes for VT-d posted-interrupts Feng Wu
2015-04-30 7:06 ` [v4 1/3] genirq: Introduce irq_set_vcpu_affinity() to target an interrupt to a VCPU Feng Wu
2015-05-13 8:09 ` Jiang Liu
2015-05-13 21:03 ` Thomas Gleixner
2015-05-14 1:04 ` Wu, Feng
2015-05-15 13:18 ` Thomas Gleixner
2015-05-18 2:42 ` Wu, Feng
2015-04-30 7:06 ` [v4 2/3] x86, irq: Implement irq_set_vcpu_affinity for pci_msi_ir_controller Feng Wu
2015-05-15 13:19 ` Thomas Gleixner
2015-04-30 7:06 ` [v4 3/3] x86, irq: Define a global vector for VT-d Posted-Interrupts Feng Wu
2015-05-15 13:27 ` Thomas Gleixner [this message]
2015-05-18 2:44 ` Wu, Feng
2015-05-07 2:05 ` [v4 0/3] prerequisite changes for VT-d posted-interrupts Wu, Feng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.11.1505151520260.4225@nanos \
--to=tglx@linutronix.de \
--cc=feng.wu@intel.com \
--cc=hpa@zytor.com \
--cc=jiang.liu@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®