Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932083AbZKRQ4m (ORCPT ); Wed, 18 Nov 2009 11:56:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757879AbZKRQ4l (ORCPT ); Wed, 18 Nov 2009 11:56:41 -0500 Received: from mail2.shareable.org ([80.68.89.115]:53958 "EHLO mail2.shareable.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757903AbZKRQ4j (ORCPT ); Wed, 18 Nov 2009 11:56:39 -0500 Date: Wed, 18 Nov 2009 16:56:30 +0000 From: Jamie Lokier To: Anthony Liguori Cc: Rusty Russell , qemu-devel@nongnu.org, Avi Kivity , virtualization , linux-kernel@vger.kernel.org, Adam Litke 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> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1004 Lines: 24 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/