All of lore.kernel.org
 help / color / mirror / Atom feed
From: jgross@suse.com
To: linux-scsi@vger.kernel.org, JBottomley@parallels.com,
	xen-devel@lists.xen.org, hch@infradead.org,
	target-devel@vger.kernel.org, david.vrabel@citrix.com,
	JBeulich@suse.com, nab@linux-iscsi.org
Cc: Juergen Gross <jgross@suse.com>
Subject: [PATCH V5 1/5] xen/events: support threaded irqs for interdomain event channels
Date: Mon, 18 Aug 2014 11:31:46 +0200	[thread overview]
Message-ID: <1408354310-6362-2-git-send-email-jgross@suse.com> (raw)
In-Reply-To: <1408354310-6362-1-git-send-email-jgross@suse.com>

From: Juergen Gross <jgross@suse.com>

Export bind_interdomain_evtchn_to_irq() so drivers can use threaded
interrupt handlers with:

 irq = bind_interdomain_evtchn_to_irq(remote_dom, remote_port);
 if (irq < 0)
     /* error */
 ret = request_threaded_irq(...);

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
---
 drivers/xen/events/events_base.c | 5 +++--
 include/xen/events.h             | 2 ++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c
index 5b5c5ff..b4bca2d 100644
--- a/drivers/xen/events/events_base.c
+++ b/drivers/xen/events/events_base.c
@@ -900,8 +900,8 @@ static int bind_ipi_to_irq(unsigned int ipi, unsigned int cpu)
 	return irq;
 }
 
-static int bind_interdomain_evtchn_to_irq(unsigned int remote_domain,
-					  unsigned int remote_port)
+int bind_interdomain_evtchn_to_irq(unsigned int remote_domain,
+				   unsigned int remote_port)
 {
 	struct evtchn_bind_interdomain bind_interdomain;
 	int err;
@@ -914,6 +914,7 @@ static int bind_interdomain_evtchn_to_irq(unsigned int remote_domain,
 
 	return err ? : bind_evtchn_to_irq(bind_interdomain.local_port);
 }
+EXPORT_SYMBOL_GPL(bind_interdomain_evtchn_to_irq);
 
 static int find_virq(unsigned int virq, unsigned int cpu)
 {
diff --git a/include/xen/events.h b/include/xen/events.h
index 8bee7a7..5321cd9 100644
--- a/include/xen/events.h
+++ b/include/xen/events.h
@@ -28,6 +28,8 @@ int bind_ipi_to_irqhandler(enum ipi_vector ipi,
 			   unsigned long irqflags,
 			   const char *devname,
 			   void *dev_id);
+int bind_interdomain_evtchn_to_irq(unsigned int remote_domain,
+				   unsigned int remote_port);
 int bind_interdomain_evtchn_to_irqhandler(unsigned int remote_domain,
 					  unsigned int remote_port,
 					  irq_handler_t handler,
-- 
1.8.4.5

  reply	other threads:[~2014-08-18  9:31 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-18  9:31 [PATCH V5 0/5] Add XEN pvSCSI support jgross
2014-08-18  9:31 ` jgross [this message]
2014-08-20 13:09   ` [Xen-devel] [PATCH V5 1/5] xen/events: support threaded irqs for interdomain event channels Konrad Rzeszutek Wilk
2014-08-20 13:09   ` Konrad Rzeszutek Wilk
2014-08-18  9:31 ` jgross
2014-08-18  9:31 ` [PATCH V5 2/5] Add XEN pvSCSI protocol description jgross
2014-08-20 13:25   ` Konrad Rzeszutek Wilk
2014-08-20 13:25   ` [Xen-devel] " Konrad Rzeszutek Wilk
2014-08-20 14:01     ` Juergen Gross
2014-08-20 14:01     ` [Xen-devel] " Juergen Gross
2014-08-21 19:26       ` Konrad Rzeszutek Wilk
2014-08-21 19:26       ` [Xen-devel] " Konrad Rzeszutek Wilk
2014-08-22  4:18         ` Juergen Gross
2014-08-22 12:04           ` Christoph Hellwig
2014-08-22 12:04           ` Christoph Hellwig
2014-08-22  4:18         ` Juergen Gross
2014-08-22 10:52   ` David Vrabel
2014-08-22 10:52   ` David Vrabel
2014-08-18  9:31 ` jgross
2014-08-18  9:31 ` [PATCH V5 3/5] Introduce xen-scsifront module jgross
2014-08-18  9:31 ` jgross
2014-08-22 22:25   ` [Xen-devel] " Konrad Rzeszutek Wilk
2014-08-25 10:10     ` Juergen Gross
2014-08-25 10:10     ` Juergen Gross
2014-08-22 22:25   ` Konrad Rzeszutek Wilk
2014-08-18  9:31 ` [PATCH V5 4/5] Introduce XEN scsiback module jgross
2014-08-18  9:31 ` jgross
2014-08-18  9:31 ` [PATCH V5 5/5] add xen pvscsi maintainer jgross
2014-08-20 13:08   ` [Xen-devel] " Konrad Rzeszutek Wilk
2014-08-20 13:08   ` Konrad Rzeszutek Wilk
2014-08-26 14:14   ` David Vrabel
2014-08-26 14:23     ` [Xen-devel] " Juergen Gross
2014-08-26 16:37       ` James Bottomley
2014-08-26 16:37       ` [Xen-devel] " James Bottomley
2014-08-26 17:12         ` David Vrabel
2014-08-27  3:50           ` Juergen Gross
2014-08-27  3:50           ` Juergen Gross
2014-08-26 17:12         ` David Vrabel
2014-08-26 14:23     ` Juergen Gross
2014-08-26 14:14   ` David Vrabel
2014-08-18  9:31 ` jgross
2014-08-22 21:21 ` [PATCH V5 0/5] Add XEN pvSCSI support Nicholas A. Bellinger
2014-08-23  0:40   ` [Xen-devel] " Konrad Rzeszutek Wilk
2014-08-26 10:13     ` David Vrabel
2014-08-26 10:13     ` [Xen-devel] " David Vrabel
2014-08-26 13:55       ` Christoph Hellwig
2014-08-26 13:55       ` Christoph Hellwig
2014-08-23  0:40   ` Konrad Rzeszutek Wilk
2014-08-22 21:21 ` Nicholas A. Bellinger

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=1408354310-6362-2-git-send-email-jgross@suse.com \
    --to=jgross@suse.com \
    --cc=JBeulich@suse.com \
    --cc=JBottomley@parallels.com \
    --cc=david.vrabel@citrix.com \
    --cc=hch@infradead.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=nab@linux-iscsi.org \
    --cc=target-devel@vger.kernel.org \
    --cc=xen-devel@lists.xen.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.