Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753955AbbGATEI (ORCPT ); Wed, 1 Jul 2015 15:04:08 -0400 Received: from mail-ig0-f174.google.com ([209.85.213.174]:34059 "EHLO mail-ig0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753075AbbGATEA (ORCPT ); Wed, 1 Jul 2015 15:04:00 -0400 MIME-Version: 1.0 In-Reply-To: References: <20150701113150-mutt-send-email-mst@redhat.com> Date: Wed, 1 Jul 2015 12:03:59 -0700 X-Google-Sender-Auth: gaY_lwhmByCUW30PTdai6A8IUfc Message-ID: Subject: Re: [PULL] virtio/vhost: cross endian support From: Linus Torvalds To: "Michael S. Tsirkin" Cc: KVM list , virtualization , Network Development , Linux Kernel Mailing List , Cornelia Huck , gkurz@linux.vnet.ibm.com, kraxel@redhat.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 601 Lines: 16 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 -- 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/