From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIevA-0006Wx-2K for qemu-devel@nongnu.org; Mon, 11 Jan 2016 11:02:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIev5-0006J3-3k for qemu-devel@nongnu.org; Mon, 11 Jan 2016 11:02:16 -0500 Received: from e06smtp05.uk.ibm.com ([195.75.94.101]:49551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIev4-0006If-Po for qemu-devel@nongnu.org; Mon, 11 Jan 2016 11:02:11 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 11 Jan 2016 16:02:08 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 27B862190019 for ; Mon, 11 Jan 2016 16:01:53 +0000 (GMT) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u0BG23P061604024 for ; Mon, 11 Jan 2016 16:02:04 GMT Received: from d06av07.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u0BG23Nv032685 for ; Mon, 11 Jan 2016 11:02:03 -0500 From: Greg Kurz Date: Mon, 11 Jan 2016 17:02:01 +0100 Message-ID: <20160111155610.16046.41392.stgit@bahia.huguette.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2 0/5] virtio/vhost cross-endian cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: 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 v2 addresses Laurent Vivier's comments. --- Greg Kurz (5): virtio-net: use the backend cross-endian capabilities Revert "vhost-net: tell tap backend about the vnet endianness" virtio: move cross-endian helper to vhost vhost: move virtio 1.0 check to cross-endian helper virtio: optimize virtio_access_is_big_endian() for little-endian targets hw/net/vhost_net.c | 33 +------------------------ hw/net/virtio-net.c | 49 +++++++++++++++++++++++++++++++++++-- hw/virtio/vhost.c | 22 ++++++++++++++--- include/hw/virtio/virtio-access.h | 28 ++------------------- include/hw/virtio/virtio-net.h | 1 + 5 files changed, 70 insertions(+), 63 deletions(-)