All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Que <qwejohn@gmail.com>
To: Xen-devel@lists.xensource.com
Subject: Interrupts in Xen: Dynamic-irq and Phys-irq
Date: Mon, 18 Jul 2005 08:07:24 -0400	[thread overview]
Message-ID: <ada605fb05071805073a50c4d1@mail.gmail.com> (raw)

Hello, 
  I am running the xen-unstable (linux 2.6.11 kernel) after building
it from source.

I had noticed that , when starting a new domain, and running:

cat /proc/interrupts, it show many irq which are of type "Dynamic-irq":

for example:
.....
259:        234     Dynamic-irq  blkif
.....

I had traced down it down in xen source  to dynirq_type struct in: 
linux-2.6.11-xen-sparse/arch/xen/kernel/evtchn.c:

static struct hw_interrupt_type dynirq_type = 
  {
  "Dynamic-irq",
  startup_dynirq,
  shutdown_dynirq,
  enable_dynirq,
	...
	...
	};
	
 I saw a usage of this struct (might it be the only usage ?) 
 in the init_IRQ() method, in this evtchn.c:
  ......
 irq_desc[dynirq_to_irq(i)].handler = &dynirq_type; 
 .......
 
 irq_desc is an instance irq_desc struct (in irq.h) ; 
 It's  handler member is a pointer to hw_irq_controller, which is in fact 
 hw_irq_controller.  

 ( in irq.h .there is a "typedef struct hw_interrupt_type  hw_irq_controller");
 
 Does anybody know and can explain in few sentences what is this Dynamic-irq? 
 What is it's use? 
 
 The "Dynamic-irq" also appears in Dom0 (for example, when you run 
"cat /proc/interrupts" and look at the  line containing "ctrl-if" or "console").

Besides it, In dom0 there is also "Phys-irq" ; for examples,after 
running "cat /proc/interruupts" in line containing "eth0" or "ide0" or "ide1". 

what is the difference between these 2 types of interrupts ? 

 Regards,
John Q.

             reply	other threads:[~2005-07-18 12:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-18 12:07 John Que [this message]
2005-07-18 12:40 ` Interrupts in Xen: Dynamic-irq and Phys-irq Keir Fraser
2005-07-18 12:52   ` John Que

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=ada605fb05071805073a50c4d1@mail.gmail.com \
    --to=qwejohn@gmail.com \
    --cc=Xen-devel@lists.xensource.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 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.