]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
virtio_ring: add virtqueue_add_inbuf/outbuf_rpmsg API
authorSuman Anna <s-anna@ti.com>
Fri, 9 Oct 2015 21:01:28 +0000 (16:01 -0500)
committerSuman Anna <s-anna@ti.com>
Wed, 14 Oct 2015 17:07:26 +0000 (12:07 -0500)
commit2a130b85aabbd75af9ac16422bf60c842a2b706d
treeac139e234722b125424ab830a3eacaba30cf7e92
parenteaf3bdd07d6d64b0e022491d019cacf57194b5b9
virtio_ring: add virtqueue_add_inbuf/outbuf_rpmsg API

Expose new variants of virtqueue_add_inbuf() & virtqueue_add_outbuf()
API specifically to deal with virtio_rpmsg. The virtio core in general
expects all the vring buffers to be allocated from linear addresses,
but the virtio_rpmsg can have buffers in non-linear space due to its
usage of the dma_alloc_coherent() API.

Based on a RFC patch from Edgar E. Iglesias <edgar.iglesias@xilinx.com>,
http://marc.info/?l=linux-virtualization&m=143047902512226&w=2

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
drivers/virtio/virtio_ring.c
include/linux/virtio.h