From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5DJT-0001dw-RU for qemu-devel@nongnu.org; Wed, 17 Jun 2015 09:23:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5DJQ-0002pr-LU for qemu-devel@nongnu.org; Wed, 17 Jun 2015 09:23:31 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:53008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5DJQ-0002pO-Bd for qemu-devel@nongnu.org; Wed, 17 Jun 2015 09:23:28 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 17 Jun 2015 14:23:26 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id ECACA1B08077 for ; Wed, 17 Jun 2015 14:24:25 +0100 (BST) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t5HDNOCb12648574 for ; Wed, 17 Jun 2015 13:23:25 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t5HDNOhf004024 for ; Wed, 17 Jun 2015 07:23:24 -0600 From: Greg Kurz Date: Wed, 17 Jun 2015 15:23:24 +0200 Message-ID: <20150617132323.6560.29432.stgit@bahia.lab.toulouse-stg.fr.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 0/6] vhost: cross-endian support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Cornelia Huck , Thomas Huth , qemu-devel@nongnu.org, Stefan Hajnoczi , Jason Wang Hi, This series brings initial enablement in vhost to support legacy virtio devices when host and guest have different endianness (for example, ppc64 versus ppc64le). Only vhost_net is fully enabled at the moment... I haven't looked at vhost_scsi yet. It is basically the same patch set I had sent last month: https://lists.gnu.org/archive/html/qemu-devel/2015-05/msg00780.html ... without the "virtio: relax feature check" patch since QEMU now supports 64-bit features. Some kernel support is needed, already available in Michael's vhost-next branch at: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git Please review. --- Cédric Le Goater (1): vhost_net: re-enable when cross endian Greg Kurz (5): 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/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 + 10 files changed, 185 insertions(+), 20 deletions(-) -- Greg