From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypy73-0005gc-PG for qemu-devel@nongnu.org; Wed, 06 May 2015 08:07:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ypy71-00024F-3K for qemu-devel@nongnu.org; Wed, 06 May 2015 08:07:41 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:51380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypy70-000245-Pe for qemu-devel@nongnu.org; Wed, 06 May 2015 08:07:39 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 6 May 2015 13:07:36 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 641C6219005E for ; Wed, 6 May 2015 13:07:15 +0100 (BST) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t46C7XSY47972536 for ; Wed, 6 May 2015 12:07:33 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 t46C7W7I011995 for ; Wed, 6 May 2015 06:07:33 -0600 From: Greg Kurz Date: Wed, 06 May 2015 14:07:29 +0200 Message-ID: <20150506120729.8607.23404.stgit@bahia.huguette.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH RFC 0/7] vhost: cross-endian support (vhost-net only) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang , Stefan Hajnoczi , "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org Hi, This series allows QEMU to use vhost with legacy virtio devices when host and target don't have the same endianness. Only network devices are covered for the moment. I had already posted a series some monthes ago but it never got reviewed. Moreover, the underlying kernel support was entirely re-written and is still waiting to be applied by Michael. I hence post as RFC. The corresponding kernel patches are available here: http://lists.linuxfoundation.org/pipermail/virtualization/2015-April/029885.html Please comment. --- Cédric Le Goater (1): vhost_net: re-enable when cross endian Greg Kurz (6): virtio: relax feature check linux-headers: sync vhost.h virtio: introduce virtio_legacy_is_cross_endian() vhost: set vring endianness for legacy virtio tap: add VNET_LE/VNET_BE operations vhost-net: tell tap backend about the vnet endianness hw/net/vhost_net.c | 50 +++++++++++++++++++++++-------------- hw/virtio/vhost.c | 50 ++++++++++++++++++++++++++++++++++++- include/hw/virtio/virtio-access.h | 13 ++++++++++ include/hw/virtio/virtio.h | 1 - include/net/net.h | 6 ++++ linux-headers/linux/vhost.h | 14 ++++++++++ net/net.c | 18 +++++++++++++ net/tap-linux.c | 34 +++++++++++++++++++++++++ net/tap-linux.h | 2 + net/tap.c | 16 ++++++++++++ net/tap_int.h | 2 + 11 files changed, 185 insertions(+), 21 deletions(-) -- Greg