virtio/s390: DMA support for virtio-ccw
authorHalil Pasic <pasic@linux.ibm.com>
Fri, 26 Apr 2019 18:32:37 +0000 (20:32 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 12 May 2019 17:11:36 +0000 (13:11 -0400)
commitf35f54f11f7f96dc6d43fa79c4a7297a9115627f
treec813bbc7f8df0a63eda719712b5a455038fd8311
parent3279beac545190ed252cd3df0eb41056537463df
virtio/s390: DMA support for virtio-ccw

Currently virtio-ccw devices do not work if the device has
VIRTIO_F_IOMMU_PLATFORM. In future we do want to support DMA API with
virtio-ccw.

Let us do the plumbing, so the feature VIRTIO_F_IOMMU_PLATFORM works
with virtio-ccw.

Let us also switch from legacy avail/used accessors to the DMA aware
ones (even if it isn't strictly necessary), and remove the legacy
accessors (we were the last users).

Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/virtio/virtio_ccw.c
include/linux/virtio.h