Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752960AbbGBGMt (ORCPT ); Thu, 2 Jul 2015 02:12:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35638 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751316AbbGBGMk (ORCPT ); Thu, 2 Jul 2015 02:12:40 -0400 Date: Thu, 2 Jul 2015 08:12:37 +0200 From: "Michael S. Tsirkin" To: Linus Torvalds Cc: KVM list , virtualization , Network Development , Linux Kernel Mailing List , Cornelia Huck , gkurz@linux.vnet.ibm.com, kraxel@redhat.com Subject: Re: [PULL] virtio/vhost: cross endian support Message-ID: <20150702080916-mutt-send-email-mst@redhat.com> References: <20150701113150-mutt-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 865 Lines: 24 On Wed, Jul 01, 2015 at 12:03:59PM -0700, Linus Torvalds wrote: > On Wed, Jul 1, 2015 at 12:02 PM, Linus Torvalds > wrote: > > > > Doing a unconditional byte swap is faster and simpler than the crazy > > conditionals. > > Unconditional endianness not only makes for simpler and faster code, > it also ends up being easier to debug and add things like type > annotations for sparse. > > Linus At least this last one is well covered by these patches: this uses separate sparse types so all accesses are statically verified by sparse to use the correct accessor. -- MST -- 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/