Received: from eggs.gnu.org ([2001:4830:134:3::10]:42112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bs5A7-0001fK-AQ for qemu-devel@nongnu.org; Thu, 06 Oct 2016 05:40:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bs5A1-0003nz-94 for qemu-devel@nongnu.org; Thu, 06 Oct 2016 05:40:22 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:33108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bs5A1-0003nr-23 for qemu-devel@nongnu.org; Thu, 06 Oct 2016 05:40:17 -0400 Received: by mail-wm0-x234.google.com with SMTP id f193so41396667wmg.0 for ; Thu, 06 Oct 2016 02:40:16 -0700 (PDT) Sender: Paolo Bonzini References: <1475583448-21013-1-git-send-email-clg@kaod.org> <20161004234352.GE18648@umbus.fritz.box> <65e1a873-c9a2-b93e-4680-d1fa5f86316d@kaod.org> <20161006034543.GE18733@umbus.fritz.box> <2a42ae88-0bb1-7967-8d92-0cb60f3779a1@redhat.com> <20161006083709.GO18733@umbus.fritz.box> From: Paolo Bonzini Message-ID: <873f2c4a-75e4-dce4-0cc9-0d9274bece29@redhat.com> Date: Thu, 6 Oct 2016 11:40:14 +0200 MIME-Version: 1.0 In-Reply-To: <20161006083709.GO18733@umbus.fritz.box> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qtest: add read/write accessors with a specific endianness List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: Laurent Vivier , Peter Maydell , QEMU Developers , =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , Greg Kurz On 06/10/2016 10:37, David Gibson wrote: > On Thu, Oct 06, 2016 at 09:23:11AM +0200, Paolo Bonzini wrote: >> >> >> On 06/10/2016 05:45, David Gibson wrote: >>> qtest is about testing hardware, not the guest cpu, and whether you're >>> accessing MMIO space or buffers the hardware will read via DMA, it's >>> the hardware which determines the correct endianness, not the guest >>> cpu. >> >> Well, sort of... qtest writes are definitely injecting things from the >> point of view of the guest CPU. For example see Laurent's patches that >> add RTAS commands to qtest. > > Sure. My point is that any guest CPU can do both LE and BE accesses > pretty simply, so we might as well specify which we want. On this I do agree. Paolo