qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/5] virtio/vhost cross-endian cleanup
@ 2016-01-11 16:02 Greg Kurz
  2016-01-11 16:02 ` [Qemu-devel] [PATCH v2 1/5] virtio-net: use the backend cross-endian capabilities Greg Kurz
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Greg Kurz @ 2016-01-11 16:02 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: qemu-devel

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

This v2 addresses Laurent Vivier's comments.

---

Greg Kurz (5):
      virtio-net: use the backend cross-endian capabilities
      Revert "vhost-net: tell tap backend about the vnet endianness"
      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               |   49 +++++++++++++++++++++++++++++++++++--
 hw/virtio/vhost.c                 |   22 ++++++++++++++---
 include/hw/virtio/virtio-access.h |   28 ++-------------------
 include/hw/virtio/virtio-net.h    |    1 +
 5 files changed, 70 insertions(+), 63 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [Qemu-devel] [PATCH v2 0/5] virtio/vhost cross-endian cleanup
@ 2016-01-11 16:11 Greg Kurz
  0 siblings, 0 replies; 5+ messages in thread
From: Greg Kurz @ 2016-01-11 16:11 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: qemu-devel

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

This v2 addresses Laurent Vivier's comments.

---

Greg Kurz (5):
      virtio-net: use the backend cross-endian capabilities
      Revert "vhost-net: tell tap backend about the vnet endianness"
      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               |   49 +++++++++++++++++++++++++++++++++++--
 hw/virtio/vhost.c                 |   22 ++++++++++++++---
 include/hw/virtio/virtio-access.h |   28 ++-------------------
 include/hw/virtio/virtio-net.h    |    1 +
 5 files changed, 70 insertions(+), 63 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-11 16:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-11 16:02 [Qemu-devel] [PATCH v2 0/5] virtio/vhost cross-endian cleanup Greg Kurz
2016-01-11 16:02 ` [Qemu-devel] [PATCH v2 1/5] virtio-net: use the backend cross-endian capabilities Greg Kurz
2016-01-11 16:02 ` [Qemu-devel] [PATCH v2 2/5] Revert "vhost-net: tell tap backend about the vnet endianness" Greg Kurz
2016-01-11 16:07 ` [Qemu-devel] [PATCH v2 0/5] virtio/vhost cross-endian cleanup Greg Kurz
  -- strict thread matches above, loose matches on Subject: below --
2016-01-11 16:11 Greg Kurz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).