From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTUTa-0005sR-IE for qemu-devel@nongnu.org; Fri, 28 Mar 2014 06:57:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTUTQ-0003MY-Uu for qemu-devel@nongnu.org; Fri, 28 Mar 2014 06:57:30 -0400 Received: from e06smtp18.uk.ibm.com ([195.75.94.114]:55838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTUTQ-0003MO-ME for qemu-devel@nongnu.org; Fri, 28 Mar 2014 06:57:20 -0400 Received: from /spool/local by e06smtp18.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 28 Mar 2014 10:57:17 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 0B01317D8041 for ; Fri, 28 Mar 2014 10:58:01 +0000 (GMT) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s2SAv2mD59244550 for ; Fri, 28 Mar 2014 10:57:02 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s2SAvDU8025035 for ; Fri, 28 Mar 2014 04:57:13 -0600 From: Greg Kurz Date: Fri, 28 Mar 2014 11:57:10 +0100 Message-ID: <20140328105709.21018.88000.stgit@bahia.local> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v6 0/8] virtio endian-ambivalent target fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: afaerber@suse.de Cc: kwolf@redhat.com, peter.maydell@linaro.org, thuth@linux.vnet.ibm.com, mst@redhat.com, marc.zyngier@arm.com, rusty@rustcorp.com.au, agraf@suse.de, qemu-devel@nongnu.org, stefanha@redhat.com, cornelia.huck@de.ibm.com, pbonzini@redhat.com, anthony@codemonkey.ws Hi, This serie addresses the comments made on v5. The main goal is to share most of the code to support both the current legacy virtio and the yet to come 1.0 implementations. The changes since the last post are: - introduce a per-device property to supersede the evil virtio_byteswap global - pass VirtIODevice to virtio memory accessors so they can use the per-device property - migration support - fix SCSI event endianness issue in virtio-scsi Thank you for your comments. --- Greg Greg Kurz (1): virtio-9p: use virtio wrappers to access headers Rusty Russell (7): virtio_legacy_get_byteswap: endian-ambivalent targets using legacy virtio virtio: allow byte swapping for vring and config access virtio-net: use virtio wrappers to access headers virtio-balloon: use virtio wrappers to access page frame numbers virtio-blk: use virtio wrappers to access headers virtio-scsi: use virtio wrappers to access headers virtio-serial-bus: use virtio wrappers to access headers hw/9pfs/virtio-9p-device.c | 3 + hw/block/virtio-blk.c | 40 ++++++----- hw/char/virtio-serial-bus.c | 39 ++++++---- hw/net/virtio-net.c | 17 +++-- hw/scsi/virtio-scsi.c | 38 +++++----- hw/virtio/virtio-balloon.c | 4 + hw/virtio/virtio.c | 98 +++++++++++++++----------- include/hw/virtio/virtio-access.h | 139 +++++++++++++++++++++++++++++++++++++ include/hw/virtio/virtio.h | 3 + stubs/Makefile.objs | 1 stubs/virtio_get_byteswap.c | 6 ++ 11 files changed, 288 insertions(+), 100 deletions(-) create mode 100644 include/hw/virtio/virtio-access.h create mode 100644 stubs/virtio_get_byteswap.c