Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753328AbbGIS7q (ORCPT ); Thu, 9 Jul 2015 14:59:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45365 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751257AbbGIS7i (ORCPT ); Thu, 9 Jul 2015 14:59:38 -0400 Date: Thu, 9 Jul 2015 20:59:26 +0200 From: Thomas Huth To: "Michael S. Tsirkin" Cc: Paolo Bonzini , Laurent Vivier , kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, kvm-ppc@vger.kernel.org, virtualization@lists.linux-foundation.org, Greg Kurz , linux-arm-kernel@lists.infradead.org, Gleb Natapov , Christoffer Dall , Marc Zyngier , Alexander Graf , Paul Mackerras , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, kraxel@redhat.com, Cornelia Huck , Linus Torvalds Subject: Re: [PATCH] KVM: Add Kconfig option to signal cross-endian guests Message-ID: <20150709205926.1f00b6b2@thh440s> In-Reply-To: <20150709160626-mutt-send-email-mst@redhat.com> References: <20150707195012-mutt-send-email-mst@redhat.com> <1436428145-29823-1-git-send-email-thuth@redhat.com> <559E435E.9050608@redhat.com> <559E6FBD.5050502@redhat.com> <20150709160626-mutt-send-email-mst@redhat.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1637 Lines: 44 On Thu, 9 Jul 2015 16:07:47 +0300 "Michael S. Tsirkin" wrote: > On Thu, Jul 09, 2015 at 02:57:33PM +0200, Paolo Bonzini wrote: > > > > > > On 09/07/2015 11:48, Laurent Vivier wrote: > > > > > > > > > On 09/07/2015 09:49, Thomas Huth wrote: > > >> The option for supporting cross-endianness legacy guests in > > >> the vhost and tun code should only be available on systems > > >> that support cross-endian guests. > > > > > > I'm sure I misunderstand something, but what happens if we use QEMU with > > > TCG instead of KVM, i.e. a big endian powerpc kernel guest on x86_64 > > > little endian host ? > > > > TCG does not yet support irqfd/ioeventfd, so it cannot be used with vhost. > > > > Paolo > > vhost does not require irqfd anymore. I think ioeventfd actually works > fine though I didn't try, it would be easy to support. That's an interesting issue, thanks for pointing this out, Laurent! So do we now rather want to leave everything as it currently is, in case somebody wants to use vhost-net with a cross-endian TCG guest one day? Or do we assume that either a) TCG is so slow anyway that nobody wants to accelerate it with vhost or b) TCG vhost likely won't happen that soon so we hope that everybody will already be using virtio 1.0 at that point in time (with a fixed endianness) ? ... then I think we should go on and include this patch. Thomas -- 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/