From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753278AbbDGMJi (ORCPT ); Tue, 7 Apr 2015 08:09:38 -0400 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:41766 "EHLO e06smtp16.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752919AbbDGMJf (ORCPT ); Tue, 7 Apr 2015 08:09:35 -0400 Subject: [PATCH v3 0/7] vhost: support for cross endian guests From: Greg Kurz To: Rusty Russell , "Michael S. Tsirkin" Cc: linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Date: Tue, 07 Apr 2015 14:09:29 +0200 Message-ID: <20150407120929.4213.8225.stgit@bahia.lab.toulouse-stg.fr.ibm.com> User-Agent: StGit/0.17-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15040712-0025-0000-0000-0000049CE44A Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patchset allows vhost to be used with legacy virtio when guest and host have a different endianness. Patches 1-6 remain the same as the previous post. Patch 7 was heavily changed according to MST's comments. --- Greg Kurz (7): virtio: introduce virtio_is_little_endian() helper tun: add tun_is_little_endian() helper macvtap: introduce macvtap_is_little_endian() helper vringh: introduce vringh_is_little_endian() helper vhost: introduce vhost_is_little_endian() helper virtio: add explicit big-endian support to memory accessors vhost: feature to set the vring endianness drivers/net/macvtap.c | 11 ++++++-- drivers/net/tun.c | 11 ++++++-- drivers/vhost/Kconfig | 10 +++++++ drivers/vhost/vhost.c | 55 ++++++++++++++++++++++++++++++++++++++ drivers/vhost/vhost.h | 34 +++++++++++++++++++---- include/linux/virtio_byteorder.h | 24 ++++++++++------- include/linux/virtio_config.h | 19 +++++++++---- include/linux/vringh.h | 19 +++++++++---- include/uapi/linux/vhost.h | 5 +++ 9 files changed, 156 insertions(+), 32 deletions(-) -- Greg From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kurz Subject: [PATCH v3 0/7] vhost: support for cross endian guests Date: Tue, 07 Apr 2015 14:09:29 +0200 Message-ID: <20150407120929.4213.8225.stgit@bahia.lab.toulouse-stg.fr.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Rusty Russell , "Michael S. Tsirkin" Cc: linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, virtualization-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: linux-api@vger.kernel.org Hi, This patchset allows vhost to be used with legacy virtio when guest and host have a different endianness. Patches 1-6 remain the same as the previous post. Patch 7 was heavily changed according to MST's comments. --- Greg Kurz (7): virtio: introduce virtio_is_little_endian() helper tun: add tun_is_little_endian() helper macvtap: introduce macvtap_is_little_endian() helper vringh: introduce vringh_is_little_endian() helper vhost: introduce vhost_is_little_endian() helper virtio: add explicit big-endian support to memory accessors vhost: feature to set the vring endianness drivers/net/macvtap.c | 11 ++++++-- drivers/net/tun.c | 11 ++++++-- drivers/vhost/Kconfig | 10 +++++++ drivers/vhost/vhost.c | 55 ++++++++++++++++++++++++++++++++++++++ drivers/vhost/vhost.h | 34 +++++++++++++++++++---- include/linux/virtio_byteorder.h | 24 ++++++++++------- include/linux/virtio_config.h | 19 +++++++++---- include/linux/vringh.h | 19 +++++++++---- include/uapi/linux/vhost.h | 5 +++ 9 files changed, 156 insertions(+), 32 deletions(-) -- Greg