Received: from eggs.gnu.org ([2001:4830:134:3::10]:39940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHlNX-0002vv-MP for qemu-devel@nongnu.org; Wed, 22 Jul 2015 00:11:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHlNT-0006wM-Lh for qemu-devel@nongnu.org; Wed, 22 Jul 2015 00:11:35 -0400 Received: from mail-qg0-f43.google.com ([209.85.192.43]:36372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHlNT-0006wI-Hd for qemu-devel@nongnu.org; Wed, 22 Jul 2015 00:11:31 -0400 Received: by qgy5 with SMTP id 5so97700319qgy.3 for ; Tue, 21 Jul 2015 21:11:31 -0700 (PDT) Date: Wed, 22 Jul 2015 00:11:28 -0400 From: Kevin O'Connor Message-ID: <20150722041128.GA27877@morn.localdomain> References: <1437494626-3773-1-git-send-email-markmb@redhat.com> <1437494626-3773-7-git-send-email-markmb@redhat.com> <55AEA65B.2000003@redhat.com> <20150721201643.GA5687@morn.localdomain> <55AEAD57.8040407@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55AEAD57.8040407@redhat.com> Subject: Re: [Qemu-devel] [RFC 6/7] Add offset register to fw_cfg DMA interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: Stefan Hajnoczi , Marc =?iso-8859-1?Q?Mar=ED?= , Paolo Bonzini , Gerd Hoffmann , qemu-devel On Tue, Jul 21, 2015 at 10:36:39PM +0200, Laszlo Ersek wrote: > On 07/21/15 22:16, Kevin O'Connor wrote: > > Without this ability we'd need to read the entire > > entry into a big linear area of memory and then memmove that around. > > If there is a way to accomplish this without an "offset" field then > > that's fine too. > > What I meant by "I+J=K" is that the qemu-internal offset into the > selected fw_cfg blob is not (and should not) be reset between calls. I missed that in my earlier review of the code. With that in place, I agree that the offset isn't needed. -Kevin