From: Pavel Machek Subject: Re: [RFC] Deferred interrupt handling. Date: Wed, 25 Jul 2007 14:18:14 +0000 Message-ID: <20070725141813.GE9256@ucw.cz> References: <005901c7c921$79c006c0$6d401440$@com> <20070718123040.615795b7@the-village.bc.nu> <64F9B87B6B770947A9F8391472E032160CC16C92@ehost011-8.exch011.intermedia.net> <20070718174736.0baf6d0e@the-village.bc.nu> <469E43D5.70802@qumranet.com> <64F9B87B6B770947A9F8391472E032160CC16D06@ehost011-8.exch011.intermedia.net> <20070718183358.0a0886aa@the-village.bc.nu> <64F9B87B6B770947A9F8391472E032160CC16F3C@ehost011-8.exch011.intermedia.net> <20070718224649.3e49a978@the-village.bc.nu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Greg KH , Avi Kivity , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Alan Cox Return-path: Content-Disposition: inline In-Reply-To: <20070718224649.3e49a978-v58gJUvfdfWUJIigds3554dd74u8MsAO@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Hi! I guess this will also allow UIO to work without _any_ kernel parts, with only slight performance penalty in 'almost-never-happens' deadlock case? (Greg, details are below, and better description is in the lkml thread). Pavel > > - Our dummy handler will always return IRQ_HANDLED in case any other > > previous > > irqaction did not return such. It will also issue the timer and mask > > the irq in this case. > > Ok > > > btw, if I'm not mistaken only after bad 99900/100000 the irq is > > disabled. > > (and with GIT providing that they occurred in a short time period) > > > - If the timer pops before the guest acks the irq, the timer handler > > will > > ack the irq and unmask it. The timer's job is only to prevent > > deadlocks. > > Ok I see what you are doing. It's either inspired or insane and I am not > quite sure which of the two. I agree it should work although may cause > performance crunches now and then and will also need care getting the > locking right. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/