From: Sander Eikelenboom Subject: Re: dom0 kernel - irq nobody cared ... the continuing saga .. Date: Tue, 10 Feb 2015 11:47:14 +0100 Message-ID: <1349522326.20150210114714@eikelenboom.it> References: <132553031.20150209160327@eikelenboom.it> <54D8CFB7.6060000@citrix.com> <54D8F01C020000780005E497@mail.emea.novell.com> <1034857157.20150209181305@eikelenboom.it> <54D9D3D9020000780005E77B@mail.emea.novell.com> <1136293979.20150210101907@eikelenboom.it> <54D9DEF8020000780005E805@mail.emea.novell.com> <17310065576.20150210110350@eikelenboom.it> <54D9ED50020000780005E850@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54D9ED50020000780005E850@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: David Vrabel , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Tuesday, February 10, 2015, 11:36:48 AM, you wrote: >>>> On 10.02.15 at 11:03, wrote: >> Tuesday, February 10, 2015, 10:35:36 AM, you wrote: >>> I suppose that's because there's no handler installed by pciback, yet >>> IRQs generated by the passed through device also arrive in Dom0, >>> and the driver for the device left in Dom0 doesn't claim the interrupts. >> >> Yes so just for my idea of what happened (and i have googled): >> the irq arrived at dom0 .. it went through the registered handlers: >> [ 1906.422483] handlers: >> [ 1906.441717] [] ata_bmdma_interrupt >> >> In this case .. there is only one .. the handler verifies if it should >> actually handle this irq by the dev_id cookie, in this case it doesn't >> .. there are no handlers .. so after 200000 of those linux says hey we >> have an interrupt that nobody cared about. >> >> So there is a chance it's an irq that was actually destined to the device >> that was passed through, but that didn't handle it ? >> If that's the case .. why .. wasn't it handled in time .. or was it shutdown >> .. >> or ... > No - such a shared IRQ gets sent to both domains. There's no notion > of one domain claiming it and the other then not seeing it, as any > instance of the interrupt may mean more than one of the devices > signaled it - remember that shared interrupts are always level > triggered, i.e. there is no way of telling how many devices request > servicing. Ok .. just thinking out loud .. But how would that work then ? If the interrupt gets always sent to both domains and there is no handler for it in dom0 Wouldn't that then *always* cause a "irq nobody cared" .. unless it's masked ? And if so .. wouldn't that imply that since i sometimes (but not always) get the "irq nobody cared", that it is unmasked at some point in time ? And if so .. is there a way to detect that it's get unmasked ? -- Sander > Jan