From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyID5-0007K4-Dg for qemu-devel@nongnu.org; Fri, 29 May 2015 07:12:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyID4-0005Q8-EZ for qemu-devel@nongnu.org; Fri, 29 May 2015 07:12:19 -0400 Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]:34516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyID4-0005Pl-0F for qemu-devel@nongnu.org; Fri, 29 May 2015 07:12:18 -0400 Received: by lbcmx3 with SMTP id mx3so46199131lbc.1 for ; Fri, 29 May 2015 04:12:16 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20150528120548.GH8461@dhcp-14-238.nay.redhat.com> References: <20150527090745.GA4669@noname.str.redhat.com> <55659372.9060804@redhat.com> <20150527101016.GB4669@noname.str.redhat.com> <55659FCC.2030704@redhat.com> <20150528024950.GC22609@dhcp-14-238.nay.redhat.com> <5566D076.8010807@redhat.com> <20150528104616.GA8461@dhcp-14-238.nay.redhat.com> <5566F36F.1010502@redhat.com> <20150528111124.GC8461@dhcp-14-238.nay.redhat.com> <5566F9AC.90102@redhat.com> <20150528120548.GH8461@dhcp-14-238.nay.redhat.com> From: Andrey Korolyov Date: Fri, 29 May 2015 14:11:55 +0300 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v6 01/13] block: Add op blocker type "device IO" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , qemu block , jcody@redhat.com, Markus Armbruster , "qemu-devel@nongnu.org" , Stefan Hajnoczi , Amit Shah , Paolo Bonzini , Max Reitz On Thu, May 28, 2015 at 3:05 PM, Fam Zheng wrote: > On Thu, 05/28 13:19, Paolo Bonzini wrote: >> >> >> On 28/05/2015 13:11, Fam Zheng wrote: >> > > Whoever uses ioeventfd needs to implement pause/resume, yes---not just >> > > dataplane, also "regular" virtio-blk/virtio-scsi. >> > > >> > > However, everyone else should be okay, because the bottom half runs >> > > immediately and the big QEMU lock is not released in the meanwhile. So >> > > the CPUs have no occasion to run. This needs a comment! >> > >> > I'm not sure. It seems timer callbacks also do I/O, for example >> > nvme_process_sq(). >> >> Right, that's also true for USB devices. :( >> >> Perhaps we can skip block_job_defer_to_main_loop if not necessary >> (bs->aio_context == qemu_get_aio_context()). > > I think so. It will make dataplane even more specialized but that seems the > only way to fix the problem at the moment. > > Fam > Sorry for a potential thread hijack, but I`m curious about the reasons to not making advertised queue depth for non-passthrough backends an independent tunable, is there any concerns behind that?