From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEFE4-00080E-FF for qemu-devel@nongnu.org; Fri, 14 Feb 2014 04:38:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEFDu-0007gG-9k for qemu-devel@nongnu.org; Fri, 14 Feb 2014 04:38:28 -0500 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:57475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEFDu-0007g5-0e for qemu-devel@nongnu.org; Fri, 14 Feb 2014 04:38:18 -0500 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 14 Feb 2014 09:38:16 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 05C6717D806C for ; Fri, 14 Feb 2014 09:38:42 +0000 (GMT) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps3074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s1E9c2cE1966564 for ; Fri, 14 Feb 2014 09:38:02 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s1E9cDDk032492 for ; Fri, 14 Feb 2014 02:38:14 -0700 Date: Fri, 14 Feb 2014 10:38:02 +0100 From: Greg Kurz Message-ID: <20140214103802.4631d238@bahia.local> In-Reply-To: <1381982022-19291-1-git-send-email-rusty@rustcorp.com.au> References: <1381982022-19291-1-git-send-email-rusty@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/7] virtio endian-ambivalent target fixes. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Thomas Huth , Marc Zyngier , Rusty Russell , Alexander Graf , Anthony Liguori On Thu, 17 Oct 2013 14:23:35 +1030 Rusty Russell wrote: > This is a re-transmit of the core of the virtio endian code. Since > there seems to be some interest in ARM BE virtio, I've separated this from > the direct problem I was solving: PowerPC LE. > > Please apply! > Rusty. > Hi, This serie is needed to enable current legacy virtio devices in a cross-endian environment. Even though virtio-1.0 will address endianess questions at the specification level, it is still in its early boot phase and no code will be available before long (Rusty, please correct me if I am wrong). We have all the PPC KVM bits in 3.14 already. We have PPC QEMU patches ready to be applied by Alexander, as soon as the common code gets in. Anthony has already positively reviewed this serie. We have been testing for some monthes... Now we are waiting for partners ! :) Are the ARM people still interested in cross-endian virtio ? Are there other people interested (Thomas for s390) ? If so, please participate or we will have to wait for the new standard to be finalized and implemented... :-\ Cheers. -- Greg > Rusty Russell (7): > virtio_get_byteswap: function for endian-ambivalent targets using > virtio. > virtio: allow byte swapping for vring and config access > hw/net/virtio-net: use virtio wrappers to access headers. > hw/net/virtio-balloon: use virtio wrappers to access page frame > numbers. > hw/block/virtio-blk: use virtio wrappers to access headers. > hw/scsi/virtio-scsi: use virtio wrappers to access headers. > hw/char/virtio-serial-bus: use virtio wrappers to access headers. > > hw/block/virtio-blk.c | 35 +++++----- > hw/char/virtio-serial-bus.c | 34 +++++----- > hw/net/virtio-net.c | 15 +++-- > hw/scsi/virtio-scsi.c | 33 +++++----- > hw/virtio/virtio-balloon.c | 3 +- > hw/virtio/virtio.c | 34 ++++++---- > include/hw/virtio/virtio-access.h | 133 > ++++++++++++++++++++++++++++++++++++++ include/hw/virtio/virtio.h > | 2 + stubs/Makefile.objs | 1 + > stubs/virtio_get_byteswap.c | 6 ++ > 10 files changed, 225 insertions(+), 71 deletions(-) > create mode 100644 include/hw/virtio/virtio-access.h > create mode 100644 stubs/virtio_get_byteswap.c > -- Gregory Kurz kurzgreg@fr.ibm.com gkurz@linux.vnet.ibm.com Software Engineer @ IBM/Meiosys http://www.ibm.com Tel +33 (0)562 165 496 "Anarchy is about taking complete responsibility for yourself." Alan Moore.