target-arm: Declare virtio-mmio as dma-coherent in dt
authorAlexander Graf <agraf@suse.de>
Fri, 10 Feb 2017 17:40:29 +0000 (17:40 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 10 Feb 2017 17:40:29 +0000 (17:40 +0000)
commit054bb7b215d621d7b3bba16f40bf3291ef4f430b
treee6e011c220481826bf584ee982b19e3b1a01fd51
parentd6f02ce3b8a43ddd8f83553fe754a34b26fb273f
target-arm: Declare virtio-mmio as dma-coherent in dt

QEMU emulated hardware is always dma coherent with its guest. We do
annotate that correctly on the PCI host controller, but left out
virtio-mmio.

Recent kernels have started to interpret that flag rather than take
dma coherency as granted with virtio-mmio. While that is considered
a kernel bug, as it breaks previously working systems, it showed that
our dt description is incomplete.

This patch adds the respective marker that allows guest OSs to evaluate
that our virtio-mmio devices are indeed cache coherent.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Message-id: 1486644810-33181-2-git-send-email-agraf@suse.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/vexpress.c
hw/arm/virt.c