qemu-patch-raspberry4/hw/virtio
Cornelia Huck b0e5d90ebc dataplane: endianness-aware accesses
The vring.c code currently assumes that guest and host endianness match,
which is not true for a number of cases:

- emulating targets with a different endianness than the host
- bi-endian targets, where the correct endianness depends on the virtio
  device
- upcoming support for the virtio-1 standard mandates little-endian
  accesses even for big-endian targets and hosts

Make sure to use accessors that depend on the virtio device.

Note that dataplane now needs to be built per-target.

Cc: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Fam Zheng <famz@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Tested-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1422289602-17874-2-git-send-email-cornelia.huck@de.ibm.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-02-16 15:07:16 +00:00
..
dataplane dataplane: endianness-aware accesses 2015-02-16 15:07:16 +00:00
Makefile.objs dataplane: endianness-aware accesses 2015-02-16 15:07:16 +00:00
vhost-backend.c virtio: Move extern declaration to header file 2014-08-09 00:06:32 +04:00
vhost-user.c vhost-user: fix mmap offset calculation 2014-11-03 18:32:48 +02:00
vhost.c vhost: Fix vhostfd leak in error branch 2014-12-01 12:29:35 +00:00
virtio-balloon.c virtio-balloon: Tweak recent fix for integer overflow 2014-10-23 09:01:29 -04:00
virtio-bus.c virtio-bus: avoid breaking build when open DEBUG switch 2014-12-10 11:18:52 +03:00
virtio-mmio.c virtio-mmio: Drop useless bus->allow_hotplug = 0 2014-10-15 05:03:13 +02:00
virtio-pci.c virtio-pci: fix migration for pci bus master 2014-11-02 12:03:03 +02:00
virtio-pci.h virtio-pci: fix migration for pci bus master 2014-11-02 12:03:03 +02:00
virtio-rng.c virtio-rng: fix check for period_ms validity 2015-01-05 14:02:47 +05:30
virtio.c migration: Append JSON description of migration stream 2015-02-05 17:16:14 +01:00