From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr2A8-00008K-OC for qemu-devel@nongnu.org; Tue, 27 Oct 2015 07:11:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr2A5-0000DX-J1 for qemu-devel@nongnu.org; Tue, 27 Oct 2015 07:11:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr2A5-0000DF-Dw for qemu-devel@nongnu.org; Tue, 27 Oct 2015 07:11:29 -0400 Message-ID: <1445944285.4397.37.camel@redhat.com> From: Gerd Hoffmann Date: Tue, 27 Oct 2015 12:11:25 +0100 In-Reply-To: <562E2CC3.9060100@redhat.com> References: <55FC99F6.4050005@redhat.com> <20151022212210.GA1979@HEDWIG.INI.CMU.EDU> <20151026104808.GE20111@stefanha-x1.localdomain> <20151026124919.GE1979@HEDWIG.INI.CMU.EDU> <562E2CC3.9060100@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 4/5] Enable fw_cfg DMA interface for ARM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: peter.maydell@linaro.org, Stefan Hajnoczi , "Gabriel L. Somlo" , qemu-devel@nongnu.org, jordan.l.justen@intel.com, pbonzini@redhat.com, markmb@redhat.com Hi, > > My hypothesis (which I guess I'm volunteering to verify, unless we > > end up rejecting this immediately as a bad idea, for some reason that > > I have missed), is that current functionality wouldn't change, given > > the way existing callbacks work right now, and that we could run the > > callback each time a blob is *selected*, rather than hooking into the > > (dma/mmio/pio) read methods. > > Callback executed on first read only sounds okay to me, callback > executed on selection... hm... don't like it. :) Care to explain why? I think callback on selection would be better. Interface is more clear then, I don't like read having different behavior depending on hidden state (current offset). And in practice selection and read will always be called together, so there shouldn't be a difference in practice ... cheers, Gerd