ANDROID: virtio: Use bounce buffers when VIRTIO_F_IOMMU_PLATFORM is set

Devices advertising the VIRTIO_F_IOMMU_PLATFORM feature require
platform-specific handling to configure their DMA transactions.

When handling virtio descriptors for such a device, use bounce
buffers to ensure that the underlying buffers are always aligned
to and padded to PAGE_SIZE in preparation for platform specific
handling at page granularity.

Bug: 209797374
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: I3f80ea2674e9efa5f4ad15063b9839b867aff381
1 file changed