qemu-irix/include/hw/virtio
Greg Kurz c02d7030c3 virtio: move bi-endian target support to a single location
Paolo's recent cpu.h cleanups broke legacy virtio for ppc64 LE guests (and
arm BE guests as well, even if I have not verified that). Especially, commit
"33c11879fd42 qemu-common: push cpu.h inclusion out of qemu-common.h" has
the side-effect of silently hiding the TARGET_IS_BIENDIAN macro from the
virtio memory accessors, and thus fully disabling support of endian changing
targets.

To be sure this cannot happen again, let's gather all the bi-endian bits
where they belong in include/hw/virtio/virtio-access.h.

The changes in hw/virtio/vhost.c are safe because vhost_needs_vring_endian()
is not called on a hot path and non bi-endian targets will return false
anyway.

While here, also rename TARGET_IS_BIENDIAN to be more precise: it is only for
legacy virtio and bi-endian guests.

Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
2016-06-07 15:39:28 +03:00
..
vhost-backend.h vhost, virtio, pci, pc 2016-02-25 12:13:49 +00:00
vhost-scsi.h vhost-scsi: include linux/vhost.h 2015-09-25 12:04:41 +02:00
vhost.h vhost: drop dead code 2015-12-02 17:59:13 +02:00
virtio-access.h virtio: move bi-endian target support to a single location 2016-06-07 15:39:28 +03:00
virtio-balloon.h virtio: move allocation to virtqueue_pop/vring_pop 2016-02-06 20:39:07 +02:00
virtio-blk.h virtio-blk: use aio handler for data plane 2016-04-07 19:57:33 +03:00
virtio-bus.h virtio: handle non-virtio-1-capable backend for ccw 2015-12-02 19:34:11 +02:00
virtio-gpu.h virtio-gpu: add live migration support 2016-06-06 09:04:34 +02:00
virtio-input.h virtio-input: support absolute axis config in pass-through 2016-04-13 17:26:12 +02:00
virtio-net.h virtio-net: use the backend cross-endian capabilities 2016-02-16 12:05:17 +02:00
virtio-rng.h rng-random: rename RndRandom to RngRandom 2016-05-23 12:18:43 +05:30
virtio-scsi.h virtio-scsi: use aio handler for data plane 2016-04-07 19:57:33 +03:00
virtio-serial.h virtio: move allocation to virtqueue_pop/vring_pop 2016-02-06 20:39:07 +02:00
virtio.h virtio: merge virtio_queue_aio_set_host_notifier_handler with virtio_queue_set_aio 2016-04-07 19:57:33 +03:00