From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7viA-0004CV-WD for qemu-devel@nongnu.org; Mon, 27 Jan 2014 18:35:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7vi4-0006mm-Pm for qemu-devel@nongnu.org; Mon, 27 Jan 2014 18:35:26 -0500 Message-ID: <1390865691.3872.33.camel@pasglop> From: Benjamin Herrenschmidt Date: Tue, 28 Jan 2014 10:34:51 +1100 In-Reply-To: References: <03D15FE3-2A12-4D60-8D20-07D05F3740F6@suse.de> <20140120191919.GH13432@cbox> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] KVM and variable-endianness guest CPUs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Thomas Falcon , kvm-devel , Victor Kamensky , QEMU Developers , "qemu-ppc@nongnu.org" , "kvmarm@lists.cs.columbia.edu" , Christoffer Dall On Wed, 2014-01-22 at 20:02 +0000, Peter Maydell wrote: > > Defining it as being always guest-order would mean that > userspace had to continually look at the guest CPU > endianness bit, which is annoying and awkward. > > Defining it as always host-endian order is the most > reasonable option available. It also happens to work > for the current QEMU code, which is nice. No. Having a byte array coming in that represents what the CPU does in its current byte order means you do *NOT* need to query the endianness of the guest CPU from userspace. Ben.