From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaJUd-0004dO-Jl for qemu-devel@nongnu.org; Fri, 11 Sep 2015 04:15:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaJUc-0007P2-Nf for qemu-devel@nongnu.org; Fri, 11 Sep 2015 04:15:35 -0400 References: <1438144934-23619-1-git-send-email-famz@redhat.com> <1438144934-23619-12-git-send-email-famz@redhat.com> <55B882C1.8070500@redhat.com> <20150729105725.GA10376@ad.nay.redhat.com> <55B8B2C3.9050307@redhat.com> <20150729115333.GA15022@ad.nay.redhat.com> <55B8C12D.2070105@redhat.com> <20150909032205.GA10922@ad.nay.redhat.com> From: Paolo Bonzini Message-ID: <55F28D99.5060908@redhat.com> Date: Fri, 11 Sep 2015 10:15:21 +0200 MIME-Version: 1.0 In-Reply-To: <20150909032205.GA10922@ad.nay.redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 11/11] block: Only poll block layer fds in bdrv_aio_poll List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, stefanha@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org On 09/09/2015 05:22, Fam Zheng wrote: > Another advantage for bdrv_aio_poll() is, in main loop we will not need > a separate AioContext in changes like: > > http://patchwork.ozlabs.org/patch/514968/ > > Because nested aio_poll will automatically be limited to only process block > layer events. My idea is to eventually let main loop use aio_poll That would be a step back. Using GSource is useful because it lets you integrate libraries such as GTK+. Paolo > , which means > we would also move chardev onto it. It would be neat to put all fds of the main > thread into a single AioContext.