Received: from eggs.gnu.org ([2001:4830:134:3::10]:49964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxGqg-0004qD-KY for qemu-devel@nongnu.org; Wed, 18 Jun 2014 10:28:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxGqX-0001gb-Aq for qemu-devel@nongnu.org; Wed, 18 Jun 2014 10:28:26 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:35892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxGqX-0001g4-1h for qemu-devel@nongnu.org; Wed, 18 Jun 2014 10:28:17 -0400 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Jun 2014 15:28:14 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id EB2612190042 for ; Wed, 18 Jun 2014 15:27:59 +0100 (BST) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s5IESBfi28573818 for ; Wed, 18 Jun 2014 14:28:11 GMT Received: from d06av07.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s5IESAYZ022021 for ; Wed, 18 Jun 2014 10:28:11 -0400 Date: Wed, 18 Jun 2014 16:28:04 +0200 From: Greg Kurz Message-ID: <20140618162804.6e2cb399@bahia.local> In-Reply-To: <20140618134204.GB31764@redhat.com> References: <20140613111703.22108.14322.stgit@bahia.local> <20140617073631.GL16768@stefanha-thinkpad.redhat.com> <539FF0E3.6040407@suse.de> <20140618103814.GG14030@stefanha-thinkpad.redhat.com> <20140618134204.GB31764@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v8 00/20] virtio endian-ambivalent target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Kevin Wolf , Peter Maydell , Anthony Liguori , Juan Quintela , Stefan Hajnoczi , Rusty Russell , Alexander Graf , QEMU Developers , "Aneesh Kumar K.V" , Stefan Hajnoczi , Amit Shah , Paolo Bonzini , Andreas =?UTF-8?B?RsOkcmJlcg==?= On Wed, 18 Jun 2014 16:42:04 +0300 "Michael S. Tsirkin" wrote: > On Wed, Jun 18, 2014 at 01:53:15PM +0100, Peter Maydell wrote: > > On 18 June 2014 11:38, Stefan Hajnoczi wrote: > > > What bothers me is that real hardware can't do this. > > > > Real hardware doesn't have "endianness matches guest CPU endianness" > > semantics, which is what the virtio spec mandates... > > So it was buggy. We never thought anyone would do a cross endian CPU :(. > We are fixing it in 1.0. > virtio isn't the only victim... we also have vga. The problem can pop up anywhere you rely on TARGET_WORDS_BIGENDIAN. > > > Given that VIRTIO > > > 1.0 is always little-endian I guess this is just a temporary hack for > > > ppc little-endian. Would be nice to add a comment so it's clear why > > > this approach is being taken instead of a cleaner solution. > > > > Also for ARM big-endian, and indeed for any CPU with runtime > > configurable endianness that wants to use the kernel virtio > > drivers that exist in the real world rather than the theoretical > > future ones that might some day be written for the 1.0 virtio > > spec... > > > > thanks > > -- PMM > > That's not a theoretical future. > Spec will almost certainly be frozen two weeks from now. > So it is almost certain that drivers will be there in 3.17. > I don't want argue on the dates but I doubt that all legacy users will switch to 1.0 as soon as it shows up... a transition period may be needed. > Existing distros can then simply backport the > drivers - same as they would with any other new hardware. > Are you saying that upstream QEMU should not to support the transition between legacy and 1.0 at all ? Cheers. -- Gregory Kurz kurzgreg@fr.ibm.com gkurz@linux.vnet.ibm.com Software Engineer @ IBM/Meiosys http://www.ibm.com Tel +33 (0)562 165 496 "Anarchy is about taking complete responsibility for yourself." Alan Moore.