Received: from eggs.gnu.org ([2001:4830:134:3::10]:47146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNoR2-0006B3-UK for qemu-devel@nongnu.org; Fri, 07 Aug 2015 16:40:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNoQz-0007TT-PM for qemu-devel@nongnu.org; Fri, 07 Aug 2015 16:40:12 -0400 Received: from mail-qg0-f43.google.com ([209.85.192.43]:33892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNoQz-0007Ri-M0 for qemu-devel@nongnu.org; Fri, 07 Aug 2015 16:40:09 -0400 Received: by qgeg42 with SMTP id g42so46236817qge.1 for ; Fri, 07 Aug 2015 13:40:08 -0700 (PDT) Date: Fri, 7 Aug 2015 16:40:06 -0400 From: Kevin O'Connor Message-ID: <20150807204006.GA8074@morn.localdomain> References: <1438858816-29385-1-git-send-email-markmb@redhat.com> <1438858878-29450-1-git-send-email-markmb@redhat.com> <1438858878-29450-4-git-send-email-markmb@redhat.com> <20150806144721.GB3606@morn.localdomain> <20150806165915.516cc97c@markmb_rh> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150806165915.516cc97c@markmb_rh> Subject: Re: [Qemu-devel] [PATCH 3/5] Implement fw_cfg DMA interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marc =?iso-8859-1?Q?Mar=ED?= , Stefan Weil Cc: Stefan Hajnoczi , Drew , Laszlo , qemu-devel@nongnu.org, Gerd Hoffmann On Thu, Aug 06, 2015 at 04:59:15PM +0200, Marc Marí wrote: > On Thu, 6 Aug 2015 10:47:21 -0400 > "Kevin O'Connor" wrote: > > Also, it's very unusual to see 32bit writes to an unaligned IO address > > - I think two pad bytes should be added so that the offset for the dma > > address is at position 4 (instead of 2). > > This is a PIO port (out), not a MMIO access (write). Maybe I'm wrong, > but I don't think it matters to have the port number aligned with the > write size. There was a thread on misaligned IO accesses recently: http://lists.nongnu.org/archive/html/qemu-devel/2015-07/msg05054.html Perhaps Stefan knows what the implications of misaligned IO writes are. I suspect it's better to avoid them. -Kevin