From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [Qemu-ppc] KVM and variable-endianness guest CPUs Date: Tue, 28 Jan 2014 11:36:13 +1100 Message-ID: <1390869373.3872.43.camel@pasglop> References: <03D15FE3-2A12-4D60-8D20-07D05F3740F6@suse.de> <20140120191919.GH13432@cbox> <1390865691.3872.33.camel@pasglop> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Victor Kamensky , Thomas Falcon , kvm-devel , QEMU Developers , "qemu-ppc@nongnu.org" , "kvmarm@lists.cs.columbia.edu" , Christoffer Dall To: Peter Maydell Return-path: Received: from gate.crashing.org ([63.228.1.57]:54635 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752052AbaA1Agf (ORCPT ); Mon, 27 Jan 2014 19:36:35 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 2014-01-27 at 23:49 +0000, Peter Maydell wrote: > > Er, what? If we make the array be guest's current order > then by definition userspace has to look at the guest's > current endianness. I agree that would be bad. Either > of the two current proposals (host kernel order; guest > CPU's native/natural/default-byte-order) avoid it, though. No, this has nothing to do with the guest endianness, and all to do about the (hopefully) byte-address invariant bus we have on the processor. Anyway, the existing crap is ABI so I suspect we have to stick with it, just maybe document it better. Ben.