From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAnpn-0003Ts-7Q for qemu-devel@nongnu.org; Wed, 18 Nov 2009 11:56:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAnph-0003Sg-MP for qemu-devel@nongnu.org; Wed, 18 Nov 2009 11:56:45 -0500 Received: from [199.232.76.173] (port=55147 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAnph-0003Sd-FN for qemu-devel@nongnu.org; Wed, 18 Nov 2009 11:56:41 -0500 Received: from mail2.shareable.org ([80.68.89.115]:33561) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NAnph-0001Lb-0N for qemu-devel@nongnu.org; Wed, 18 Nov 2009 11:56:41 -0500 Date: Wed, 18 Nov 2009 16:56:30 +0000 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver (V2) Message-ID: <20091118165630.GB28723@shareable.org> References: <1258488996.2820.35.camel@aglitke> <1258490189.2820.37.camel@aglitke> <200911181200.39971.rusty@rustcorp.com.au> <4B040C82.6070901@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B040C82.6070901@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Rusty Russell , linux-kernel@vger.kernel.org, virtualization , Avi Kivity , Adam Litke Anthony Liguori wrote: > Rusty Russell wrote: > >The little-endian conversion of the balloon driver is a historical mistake > >(no other driver does this). Let's not extend it to the stats. > > I think the mistake is that the other drivers don't do that. > > We cheat in qemu and assume that the guest is always in a fixed > endianness but this is not always the case for all architectures. If guests can have different endianness (reasonable on some CPUs where it's switchable - some even have more than 2 options), then I guess the *host* on those systems have different endianness too. Is the host's endianness signalled to the guest anywhere, so that guest drivers can do cpu_to_qemuhost32(), when someone eventually finds that necessary? -- Jamie