Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755027AbbDGQIb (ORCPT ); Tue, 7 Apr 2015 12:08:31 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:46093 "EHLO e06smtp11.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754394AbbDGQI2 (ORCPT ); Tue, 7 Apr 2015 12:08:28 -0400 Date: Tue, 7 Apr 2015 18:08:20 +0200 From: Greg Kurz To: "Michael S. Tsirkin" Cc: Rusty Russell , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v3 0/7] vhost: support for cross endian guests Message-ID: <20150407180820.473d54be@bahia.local> In-Reply-To: <20150407175443-mutt-send-email-mst@redhat.com> References: <20150407120929.4213.8225.stgit@bahia.lab.toulouse-stg.fr.ibm.com> <20150407175443-mutt-send-email-mst@redhat.com> Organization: IBM X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15040716-0041-0000-0000-000003FAB04A Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1995 Lines: 57 On Tue, 7 Apr 2015 17:55:08 +0200 "Michael S. Tsirkin" wrote: > On Tue, Apr 07, 2015 at 02:09:29PM +0200, Greg Kurz wrote: > > 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. > > This still doesn't actually work, right? > tun and macvtap need new ioctls too ... > Yes they do. I already have a patch but I wasn't sure if I should send it along this series... Since it looks like there will be a v4, I'll add the tun/macvtap patch. Thanks. -- Greg > > --- > > > > 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 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/