ANDROID: virtio: Add helper functions to attach/detach vring descriptors

Move the attach and detach logic for manipulating vring descriptors
out into their own functions so that we can later extend these to
bounce the data for devices with VIRTIO_F_IOMMU_PLATFORM set.

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