From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9ST4-0007Mf-Dm for qemu-devel@nongnu.org; Wed, 05 Sep 2012 23:09:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9ST3-0004yo-D2 for qemu-devel@nongnu.org; Wed, 05 Sep 2012 23:09:22 -0400 Received: from gate.crashing.org ([63.228.1.57]:51669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9ST3-0004yR-5A for qemu-devel@nongnu.org; Wed, 05 Sep 2012 23:09:21 -0400 Message-ID: <1346900943.19098.22.camel@pasglop> From: Benjamin Herrenschmidt Date: Thu, 06 Sep 2012 13:09:03 +1000 In-Reply-To: <87ehmfj38o.fsf@rustcorp.com.au> References: <1346771641-12136-1-git-send-email-cornelia.huck@de.ibm.com> <1346771641-12136-2-git-send-email-cornelia.huck@de.ibm.com> <87ehmfj38o.fsf@rustcorp.com.au> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v2] virtio-spec: Add virtio-ccw spec. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rusty Russell Cc: linux-s390 , Anthony Liguori , KVM , Carsten Otte , Sebastian Ott , Marcelo Tosatti , Heiko Carstens , qemu-devel , Alexander Graf , Christian Borntraeger , Avi Kivity , Cornelia Huck , Martin Schwidefsky On Thu, 2012-09-06 at 11:56 +0930, Rusty Russell wrote: > Excellent. I have applied and pushed this revision. > > I was tempted to ask for an explicit endian marker, as switching to > explicit little endian was high on the TODO list for virtio2. On the > other hand, we could say virtio2-pci config space is always > little-endian, and virtio-ccw config space is always big-endian. > > That covers the config endian, and and if we introduce a new ring > format, that endian debate can be separate. I'm not too happy with having different endians for the transport. That somewhat relies on making sure "client" code always use the proper size-based accessors to any element in the config space, whether it's the common one or the device specific part. I've seen that assumption broken multiple times in the past (iirc, maybe I'm just mis-remembering here :-) I would think that it would be much better to define the endianness of the virtio config space once and for all regardless of the underlying transport. It's not like a few byteswaps on config accesses are going to hurt s390 performance... Cheers, Ben.