From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9ZMu-00064m-PE for qemu-devel@nongnu.org; Wed, 14 Aug 2013 07:36:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9ZMp-0007i8-PZ for qemu-devel@nongnu.org; Wed, 14 Aug 2013 07:36:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9ZMp-0007i3-Hk for qemu-devel@nongnu.org; Wed, 14 Aug 2013 07:35:55 -0400 Date: Wed, 14 Aug 2013 13:35:44 +0200 From: Stefan Hajnoczi Message-ID: <20130814113544.GA21598@stefanha-thinkpad.redhat.com> References: <5209E6A1.6060308@siemens.com> <20130813134559.GA29990@stefanha-thinkpad.redhat.com> <520A3EEF.5050509@siemens.com> <20130814085205.GB14914@stefanha-thinkpad.redhat.com> <520B4859.9050205@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <520B4859.9050205@siemens.com> Subject: Re: [Qemu-devel] Using aio_poll for timer carrier threads List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Kevin Wolf , Anthony Liguori , Stefan Hajnoczi , qemu-devel , liu ping fan , Alex Bligh , Paolo Bonzini , MORITA Kazutaka , Richard Henderson On Wed, Aug 14, 2013 at 11:05:29AM +0200, Jan Kiszka wrote: > On 2013-08-14 10:52, Stefan Hajnoczi wrote: > > On Tue, Aug 13, 2013 at 04:13:03PM +0200, Jan Kiszka wrote: > >> On 2013-08-13 15:45, Stefan Hajnoczi wrote: > >>> On Tue, Aug 13, 2013 at 09:56:17AM +0200, Jan Kiszka wrote: > >>> The details depend on your device, do you have a git repo I can look at > >>> to understand your device model? > >> > >> Pushed my hacks here: > >> > >> git://git.kiszka.org/qemu.git queues/rt.new3 > > > > Excellent, thanks! Are you calling qemu_raise_irq() outside the global > > mutex and how is it protected? > > By luck and via many exceptions, specifically by disabling of HPET > support (to avoid that it is involved in IRQ routing - or even used in > legacy mode) and by relying on the direct delivery to the kernel in KVM > mode. Yes, IRQ delivery is still a huge construction site for BQL-free > device models. Okay. In dataplane I use the guest notifier for virtio devices (irqfd for KVM mode with MSI-X or bounced through virtio_queue_guest_notifier_read()). Stefan