From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aH8nY-0004Li-3R for qemu-devel@nongnu.org; Thu, 07 Jan 2016 06:32:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aH8nU-0007Nx-TJ for qemu-devel@nongnu.org; Thu, 07 Jan 2016 06:32:08 -0500 Received: from e06smtp07.uk.ibm.com ([195.75.94.103]:55490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aH8nU-0007Nl-Ix for qemu-devel@nongnu.org; Thu, 07 Jan 2016 06:32:04 -0500 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 7 Jan 2016 11:32:01 -0000 From: Greg Kurz Date: Thu, 07 Jan 2016 12:31:56 +0100 Message-ID: <20160107110747.10897.41118.stgit@bahia.huguette.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 0/6] virtio/vhost cross-endian cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org This series brings some improvements to the cross-endian support in the virtio and vhost code: - use qemu_set_vnet_be() and qemu_set_vnet_le() directly from virtio-net, so that backend cross-endian capabilities benefit to both emulated and vhost accelerated devices - optimize virtio_access_is_big_endian() for little-endian targets - various cleanups These patches had already been posted last year as two separate series: https://lists.nongnu.org/archive/html/qemu-devel/2015-11/msg04166.html https://lists.nongnu.org/archive/html/qemu-devel/2015-12/msg02827.html I could not observe performance changes between guest and host on x86 with an emulated virtio-net device. --- Greg Kurz (6): virtio-net: use the backend cross-endian capabilities Revert "vhost-net: tell tap backend about the vnet endianness" virtio: drop the virtio_needs_swap() helper 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/net/vhost_net.c | 33 +------------------------------ hw/net/virtio-net.c | 40 +++++++++++++++++++++++++++++++++++-- hw/virtio/vhost.c | 22 +++++++++++++++++--- include/hw/virtio/virtio-access.h | 25 +++-------------------- include/hw/virtio/virtio-net.h | 1 + 5 files changed, 61 insertions(+), 60 deletions(-)