All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: "Jiang, Yunhong" <yunhong.jiang@intel.com>,
	Espen Skoglund <espen.skoglund@netronome.com>,
	"Shan, Haitao" <haitao.shan@intel.com>
Cc: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>,
	xen-devel <xen-devel@lists.xensource.com>,
	"Li, Xin B" <xin.b.li@intel.com>,
	"Tian, Kevin" <kevin.tian@intel.com>
Subject: Re: [PATCH 0/5] Add MSI support to XEN
Date: Fri, 28 Mar 2008 07:24:50 +0000	[thread overview]
Message-ID: <C4124DC2.157DA%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <391BF3CDD2DC0848B40ACB72FA97AD59031DDD43@pdsmsx413.ccr.corp.intel.com>

This requires the guest to call back into Xen to signal EOI (as we already
do for legacy level-triggered interrupts). We shouldn't really need to do
that for MSI and it's rather more expensive than a couple of accesses over
the PCI bus!

It's this callback into Xen, which we do not really understand why it's
needed, which I'm railing against. Is there some fundamental aspect of MSI
we do not understand, or are we working around one brain-dead or buggy
device?

 -- Keir

On 28/3/08 01:48, "Jiang, Yunhong" <yunhong.jiang@intel.com> wrote:

> Not masking each time when interrupt happen, instead, we do that only
> when the second interrupt happen while the previous one is still
> pending, it should be something like handle_edge_irqs() in upstream
> linux.
> 
> -- Yunhong Jiang
> 
> Espen Skoglund <mailto:espen.skoglund@netronome.com> wrote:
>> Preventing interrupt storms by masking the interrupt in the MSI/MSI-X
>> capabilty structure or MSI-X table within the interrupt handler is
>> insane.  It requires accesses over the PCI/PCIe bus and is clearly
>> something you want to avoid on the fast path.
>> 
>> eSk
>> 
>> 
>> [Haitao Shan]
>>>     There are no much changes made compared with the original
> patches.
>>> But there do have some issues that we need your kind comments.
>> 
>>>   1> ACK-NEW method is necessary to avoid IRQ storm. But it causes
> the
>>>          deadlock. During my tests, I do find there can be deadlock
> with
>>> patches applied. When assigned a NIC device to HVM domain, the
> scenario
>>> is: Dom0 is waiting to IDE interrupt (vector 0x21); HVM domain is
> waiting
>>> for qemu's IDE emulation and thus blocked; NIC interrupt (MSI vector
> 0x31)
>>> is waiting for injection to HVM domain since it is blocked now; IDE
>>> interrupt is waiting for NIC interrupt since NIC interrupt is of high
>>> priority but not ACKed by XEN now. When IDE interrupt and NIC
> interrupt
>>> are delivered to the same CPU, and when guest OS is Vista, the
>>> phenomenon is easy to be observed.
>> 
>>>   2> Without ACK-NEW, some naughty NIC devices as we observed will
>>> bring IRQ storms. For this phenomenon, I think Yunhong can comment
> more.
>>> Basically, writing EOI without mask the source of MSI will bring IRQ
>>> storm. Although the reason is under investigation, XEN should anyhow
>>> handle such bogous device, right?
>> 
>>>   3> Using ACK-OLD and masking the MSI when writing EOI can be
>>> solution. However, XEN does not own PCI configuration spaces.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

  reply	other threads:[~2008-03-28  7:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-27  6:55 [PATCH 0/5] Add MSI support to XEN Shan, Haitao
2008-03-27  7:56 ` Keir Fraser
2008-03-27 17:32 ` Espen Skoglund
2008-03-27 22:09   ` Caitlin Bestler
2008-03-28  1:48   ` Jiang, Yunhong
2008-03-28  7:24     ` Keir Fraser [this message]
2008-03-28  8:40       ` Jiang, Yunhong
2008-03-28  9:16         ` Keir Fraser
2008-03-28  9:35           ` Jiang, Yunhong
2008-03-31 13:57           ` Jiang, Yunhong
2008-03-31 14:14             ` Keir Fraser
2008-03-31 14:15               ` Keir Fraser
2008-03-31 14:25               ` Jiang, Yunhong
2008-03-31 14:33                 ` Keir Fraser
2008-04-01  2:39                   ` Shan, Haitao
2008-03-28 11:37       ` Espen Skoglund
2008-03-28 11:53         ` Keir Fraser
2008-03-28 12:15           ` Espen Skoglund
2008-03-28 13:00             ` Keir Fraser
2008-04-02 14:55 ` Neil Turton
2008-04-03 12:11   ` Shan, Haitao
2008-04-03 12:31     ` Keir Fraser

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=C4124DC2.157DA%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=espen.skoglund@netronome.com \
    --cc=haitao.shan@intel.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xin.b.li@intel.com \
    --cc=yunhong.jiang@intel.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.