From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bs4Kc-0004xM-6J for qemu-devel@nongnu.org; Thu, 06 Oct 2016 04:47:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bs4KZ-0002GP-DM for qemu-devel@nongnu.org; Thu, 06 Oct 2016 04:47:09 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:36821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bs4KY-0002EK-Fk for qemu-devel@nongnu.org; Thu, 06 Oct 2016 04:47:07 -0400 Date: Thu, 6 Oct 2016 19:37:09 +1100 From: David Gibson Message-ID: <20161006083709.GO18733@umbus.fritz.box> 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="R+Rs1qz93vBJxC1z" Content-Disposition: inline In-Reply-To: <2a42ae88-0bb1-7967-8d92-0cb60f3779a1@redhat.com> 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: Paolo Bonzini Cc: Peter Maydell , Laurent Vivier , Greg Kurz , =?iso-8859-1?Q?C=E9dric?= Le Goater , QEMU Developers --R+Rs1qz93vBJxC1z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 06, 2016 at 09:23:11AM +0200, Paolo Bonzini wrote: >=20 >=20 > 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. >=20 > 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. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --R+Rs1qz93vBJxC1z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX9g01AAoJEGw4ysog2bOS4UIP/R1xH3mUFmeI+l9sCZgQieqI x3ELzsIWgc8MwRbHfqRDtKCXVBEWc9JHtZdLuhEy2lOJYh2xIo0IKPaxUWvPH7QE akMSEfKE9PNCvC9rs4eAiE5LfawircK75CRy577amcHl9Vc/xoR05hISv9V+b7YT BXG3uz64AwqnfrwMM6HWkit/YzfiQH25tG4ptCBpININt2gPEbu7/Wj83YhC8+kX JETvOhnfgvj3du8s6ho9QhU90G3Eo6AgBQUMHL9ume63xtH2qQq3ir0CfNse/2XB /SclZ3Ykyrz/AE38tdME29bta6UoRRAjerC0Byt2VFze/yHh6Ei9Bc/Ux221vniP TZJQtRPKbk8W8dmjW/01j64UMukiHWY2VbMbX+4Vvzqly7OxffQbY6Cmo5a1rkuA M2T4Sxt4sA4RKwECB4wHIZSNG+6/BJ2NKiPGeGcwc5I1ouJ0I09yWxVtJibTwRcx jIjRAlmX5UqgeHtKczAbahwJ5gkfzKQX8s0FiOIgtJTy0qs7VvTxKlYyfiXKkC4Q TtXX8lRXZLw3mgYcon9aBfdy/q5RQ7Yhikizi2PZtrujnhLWnnCJTd3sN37GcsoA zqcbu9nWXdvcQslCHK0AIxfVChjmU80NGG6NdlKTKqPzRkmgpvcXudeZk0nK31qz reRL0RNs78F64vvnRJz2 =L84q -----END PGP SIGNATURE----- --R+Rs1qz93vBJxC1z--