All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xensource.com>
To: "Tian, Kevin" <kevin.tian@intel.com>, Guy Zana <guy@neocleus.com>,
	"Kay, Allen M" <allen.m.kay@intel.com>,
	xen-devel@lists.xensource.com
Subject: Re: [VTD][patch 0/5] HVM device assignment using vt-d
Date: Thu, 31 May 2007 14:37:18 +0100	[thread overview]
Message-ID: <C2848E1E.FC6F%keir@xensource.com> (raw)
In-Reply-To: <D470B4E54465E3469E2ABBC5AFAC390F013B1EB0@pdsmsx412.ccr.corp.intel.com>

On 31/5/07 14:20, "Tian, Kevin" <kevin.tian@intel.com> wrote:

>     When driver requests device to clear interrupt assertion at end
> of handling 1st, it's possible that device keeps assertion if interrupt
> condition still matches in 2nd. In that case, no interrupt will happen
> any more when EOI is written to IOAPIC due to polarity inversion.

This is absolutely fine. The virtual wire status will remain HIGH in this
case, which is correct since the 'runt' LOW pulse on the physical wire can
be ignored. What we are looking for is to track the physical wire status in
the long run; pulses one way or the other do not matter.

Remember we are talking about *level-triggered* interrupt lines, not
edge-triggered. This polarity-change trick would not be used, and would not
be necessary, for edge-triggered interrupts. We would EOI the physical APIC
early, before running the ISR, just as usual for edge-triggered interrupts.

Because we are talking about level-triggered interrupts, if the line
continues to be HIGH after the ISR runs then of course we'll just deliver
another interrupt straight to the relevant VCPU. That's how level-triggered
interrupts work. :-)

 -- Keir

  reply	other threads:[~2007-05-31 13:37 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-30 19:05 [VTD][patch 0/5] HVM device assignment using vt-d Kay, Allen M
2007-05-30 19:55 ` Keir Fraser
2007-05-30 22:02   ` Kay, Allen M
2007-05-31  6:49     ` Keir Fraser
2007-05-31  6:05   ` Guy Zana
2007-05-31 13:20     ` Tian, Kevin
2007-05-31 13:37       ` Keir Fraser [this message]
2007-05-31 13:59         ` Tian, Kevin
2007-05-31 15:03           ` Keir Fraser
2007-05-31 15:10             ` Tian, Kevin
2007-05-31 15:14               ` Keir Fraser
2007-05-31 15:30                 ` Tian, Kevin
2007-05-31 15:40                   ` Keir Fraser
2007-05-31 15:51                     ` Tian, Kevin
2007-05-31 15:52                     ` Keir Fraser
2007-05-31 15:59                       ` Tian, Kevin
2007-05-31 16:03                         ` Tian, Kevin
2007-05-31 16:07                           ` Guy Zana
2007-05-31 16:28                         ` Keir Fraser
2007-06-01  2:57                       ` Tian, Kevin
2007-05-31 14:08       ` Guy Zana
2007-05-31 17:43     ` Kay, Allen M
2007-05-31 18:00       ` Guy Zana
2007-05-31 18:42         ` Kay, Allen M
2007-06-03  8:29     ` Kay, Allen M
2007-06-03  8:37       ` Keir Fraser
2007-06-03  9:59       ` Guy Zana
2007-06-03 13:29         ` Tian, Kevin
2007-06-03 13:35           ` Keir Fraser
2007-06-03 14:35           ` Guy Zana
2007-06-04 22:56         ` Kay, Allen M

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=C2848E1E.FC6F%keir@xensource.com \
    --to=keir@xensource.com \
    --cc=allen.m.kay@intel.com \
    --cc=guy@neocleus.com \
    --cc=kevin.tian@intel.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.