qemu-e2k/include/hw/virtio
Greg Kurz 0f5d1d2a49 virtio: memory accessors for endian-ambivalent targets
This is the virtio-access.h header file taken from Rusty's "endian-ambivalent
targets using legacy virtio" patch. It introduces helpers that should be used
when accessing vring data or by drivers for data that contains headers.
The virtio config space is also target endian, but the current code already
handles that with the virtio_is_big_endian() helper. There is no obvious
benefit at using the virtio accessors in this case.

Now we have two distinct paths: a fast inline one for fixed endian targets,
and a slow out-of-line one for targets that define the new TARGET_IS_BIENDIAN
macro.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
[ relicensed virtio-access.h to GPLv2+ on Rusty's request,
  pass &address_space_memory to physical memory accessors,
  per-device endianness,
  virtio tswap16 and tswap64 helpers,
  faspath for fixed endian targets,
  Greg Kurz <gkurz@linux.vnet.ibm.com> ]
Cc: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2014-06-29 19:39:42 +03:00
..
dataplane dataplane: replace hostmem with memory_region_find 2013-12-20 09:11:57 +01:00
vhost-backend.h Add vhost-backend and VhostBackendType 2014-06-19 16:41:56 +03:00
vhost-scsi.h
vhost.h vhost: block migration if backend does not log memory 2014-06-23 17:37:59 +03:00
virtio-9p.h
virtio-access.h virtio: memory accessors for endian-ambivalent targets 2014-06-29 19:39:42 +03:00
virtio-balloon.h
virtio-blk.h virtio-blk: Export request handling functions to dataplane 2014-06-27 18:20:35 +02:00
virtio-bus.h
virtio-net.h virtio-net: announce self by guest 2014-06-19 16:41:54 +03:00
virtio-rng.h
virtio-scsi.h virtio-scsi: define dummy handle_output for vhost-scsi vqs 2014-06-19 10:15:48 +02:00
virtio-serial.h virtio-serial-port: Convert to QOM realize/unrealize 2014-03-13 01:21:57 +01:00
virtio.h virtio: add endian-ambivalent support to VirtIODevice 2014-06-29 19:39:42 +03:00