diff options
| author | Cornelia Huck | 2015-01-26 17:26:42 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2015-02-16 16:07:16 +0100 |
| commit | b0e5d90ebc3edb5cfc1d5d33dd3334482dee6d46 (patch) | |
| tree | 25c1c688c21b635c644cafe0114ab2de3a494c5e /hw/virtio/Makefile.objs | |
| parent | libqos/ahci: create libqos/ahci.c (diff) | |
| download | qemu-b0e5d90ebc3edb5cfc1d5d33dd3334482dee6d46.tar.gz qemu-b0e5d90ebc3edb5cfc1d5d33dd3334482dee6d46.tar.xz qemu-b0e5d90ebc3edb5cfc1d5d33dd3334482dee6d46.zip | |
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>
Diffstat (limited to 'hw/virtio/Makefile.objs')
| -rw-r--r-- | hw/virtio/Makefile.objs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/Makefile.objs b/hw/virtio/Makefile.objs index d21c397756..19b224a44d 100644 --- a/hw/virtio/Makefile.objs +++ b/hw/virtio/Makefile.objs @@ -2,7 +2,7 @@ common-obj-y += virtio-rng.o common-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o common-obj-y += virtio-bus.o common-obj-y += virtio-mmio.o -common-obj-$(CONFIG_VIRTIO) += dataplane/ +obj-$(CONFIG_VIRTIO) += dataplane/ obj-y += virtio.o virtio-balloon.o obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o |
