From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRdni-00079S-G4 for qemu-devel@nongnu.org; Fri, 05 Feb 2016 05:39:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRdnf-0007q4-6p for qemu-devel@nongnu.org; Fri, 05 Feb 2016 05:39:42 -0500 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:51244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRdne-0007pz-Sr for qemu-devel@nongnu.org; Fri, 05 Feb 2016 05:39:39 -0500 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 5 Feb 2016 10:39:36 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 027991B08061 for ; Fri, 5 Feb 2016 10:39:45 +0000 (GMT) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u15AdX354850104 for ; Fri, 5 Feb 2016 10:39:33 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 u15AdX1W028641 for ; Fri, 5 Feb 2016 03:39:33 -0700 From: Greg Kurz Date: Fri, 05 Feb 2016 11:39:27 +0100 Message-ID: <20160205103927.21017.26364.stgit@bahia.huguette.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v4 0/6] virtio/vhost cross-endian cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Cornelia Huck , Laurent Vivier , qemu-devel@nongnu.org This series brings some improvements to the cross-endian support in the virtio and vhost code: - use qemu_set_vnet_be() and qemu_set_vnet_le() directly from virtio-net, so that backend cross-endian capabilities benefit to both emulated and vhost accelerated devices - optimize virtio_access_is_big_endian() for little-endian targets - various cleanups This v4 is a respin of the v3, taking into account the following fix: commit cf0a628f6e81bfc9b7a944fa0b80c3594836df56 Author: Laurent Vivier Date: Wed Jan 13 20:26:25 2016 +0100 net: set endianness on all backend devices It impacts patches 1 and 2, that had already been reviewed. Laurent, Cornelia, Could you please ack/nack the changes ? The series is based on Michael Tsirkin's tree: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git pci Thanks. -- Greg --- Greg Kurz (6): virtio-net: use the backend cross-endian capabilities vhost-net: revert support of cross-endian vnet headers virtio: move cross-endian helper to vhost vhost: move virtio 1.0 check to cross-endian helper vhost: simplify vhost_needs_vring_endian() virtio: optimize virtio_access_is_big_endian() for little-endian targets hw/net/vhost_net.c | 41 +++------------------- hw/net/virtio-net.c | 68 ++++++++++++++++++++++++++++++++++++- hw/virtio/vhost.c | 27 +++++++++++++-- include/hw/virtio/virtio-access.h | 28 ++------------- include/hw/virtio/virtio-net.h | 1 + 5 files changed, 98 insertions(+), 67 deletions(-)