From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9UJ0-0001fR-Bz for qemu-devel@nongnu.org; Thu, 17 Dec 2015 03:52:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9UIv-0006Kj-9P for qemu-devel@nongnu.org; Thu, 17 Dec 2015 03:52:58 -0500 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:33658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9UIu-0006Kc-UE for qemu-devel@nongnu.org; Thu, 17 Dec 2015 03:52:53 -0500 Received: from localhost by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 17 Dec 2015 08:52:51 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id CF82017D8059 for ; Thu, 17 Dec 2015 08:53:23 +0000 (GMT) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id tBH8qm7m50266288 for ; Thu, 17 Dec 2015 08:52:48 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id tBH8qlDQ016701 for ; Thu, 17 Dec 2015 01:52:47 -0700 From: Greg Kurz Date: Thu, 17 Dec 2015 09:52:46 +0100 Message-ID: <20151217085213.10306.97858.stgit@bahia.huguette.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2 0/3] virtio: cross-endian helpers fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Cornelia Huck , qemu-devel@nongnu.org This series tries to rework cross-endian helpers for better clarity. It does not change behaviour, except perhaps patch 3/3 even if I could not measure any performance gain. --- Greg Kurz (3): virtio: move cross-endian helper to vhost vhost: move virtio 1.0 check to cross-endian helper virtio: optimize virtio_access_is_big_endian() for little-endian targets hw/virtio/vhost.c | 22 ++++++++++++++++++---- include/hw/virtio/virtio-access.h | 16 +++------------- 2 files changed, 21 insertions(+), 17 deletions(-)