From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH 0/3] virtio-mmio: handle BE guests on LE hosts Date: Mon, 14 Oct 2013 15:03:48 +0200 Message-ID: <525BEBB4.4050603@redhat.com> References: <1381502171-8187-1-git-send-email-marc.zyngier@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Rusty Russell , "Michael S. Tsirkin" , Pawel Moll To: Marc Zyngier Return-path: Received: from mail-qe0-f49.google.com ([209.85.128.49]:50533 "EHLO mail-qe0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754583Ab3JNNDx (ORCPT ); Mon, 14 Oct 2013 09:03:53 -0400 Received: by mail-qe0-f49.google.com with SMTP id a11so150325qen.22 for ; Mon, 14 Oct 2013 06:03:53 -0700 (PDT) In-Reply-To: <1381502171-8187-1-git-send-email-marc.zyngier@arm.com> Sender: kvm-owner@vger.kernel.org List-ID: Il 11/10/2013 16:36, Marc Zyngier ha scritto: > This small patch series adds just enough kernel infrastructure and > fixes to allow a BE guest to use virtio-mmio on a LE host, provided > that the host actually supports such madness. More precisely, it allows the guest drivers to pick the endianness they prefer. Mixed-endian virtio works fine on QEMU with e.g. a mips guest in emulation mode, because then any given QEMU binary will always use the same endianness (e.g. big for qemu-system-mips). As far as I understand, patches 2 and 3 are really separate bugfixes, and they should go in irrespective of patch 1. Paolo > This has been tested on arm64, with some fixes to KVM and a set of > changes to kvmtool, both which I am posting separately. > > A branch containing all the relevant changes is at: > git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/be-on-le-3.12-rc4 > > Cc: Rusty Russell > Cc: Michael S. Tsirkin > Cc: Pawel Moll