From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH v2] virtio-spec: Add virtio-ccw spec. Date: Thu, 06 Sep 2012 13:09:03 +1000 Message-ID: <1346900943.19098.22.camel@pasglop> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <87ehmfj38o.fsf@rustcorp.com.au> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Archive: List-Post: 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 List-ID: 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.