Received: from eggs.gnu.org ([2001:4830:134:3::10]:59191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbIoh-0003cr-03 for qemu-devel@nongnu.org; Thu, 26 Mar 2015 21:12:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbIod-0001bo-OA for qemu-devel@nongnu.org; Thu, 26 Mar 2015 21:12:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbIod-0001bh-HI for qemu-devel@nongnu.org; Thu, 26 Mar 2015 21:12:03 -0400 Date: Fri, 27 Mar 2015 09:11:19 +0800 From: Fam Zheng Message-ID: <20150327011119.GM14724@ad.nay.redhat.com> References: <20150326185250.GA23415@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150326185250.GA23415@igalia.com> Subject: Re: [Qemu-devel] [PATCH v4 0/7] Block Throttle Group Support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi On Thu, 03/26 19:52, Alberto Garcia wrote: > On Thu, Mar 26, 2015 at 07:24:54PM +0200, Alberto Garcia wrote: > > > - The creation/destruction of ThrottleTimers is now handled internally > > when a BlockDriverState is added/removed from a group, since > > there's not much point on keeping them separate. This also hides > > the timer callbacks from the outside, which makes things a bit > > nicer and easier for some of the other changes included in these > > series. > > Hmm... this actually breaks the new test because now BDS are required > to have an AioContext attached when they're added to a group, which > doesn't happen in qtest: > > bdrv = bdrv_new(); > throttle_group_register_bs(bdrv, "bar"); > > I'm unsure of how to proceed with this, I don't see a clear way to > attach the AioContext here (unless I do bdrv->aio_context = ctx). > Suggestions are welcome. Use bdrv_attach_aio_context? Fam