From: Sjur Brændeland Date: Wed, 20 Mar 2013 03:21:24 +0000 (+1030) Subject: virtio: Introduce vringh wrappers in virtio_config X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~63^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3beee86a4b9374e38dba36b44e81f1423a0d6b54;p=pandora-kernel.git virtio: Introduce vringh wrappers in virtio_config Add wrappers for the host vrings to support loose coupling between the virtio device and driver. A new struct vringh_config_ops with the functions find_vrhs() and del_vrhs() is added to the virtio_device struct. This enables virtio drivers to manage virtio host rings without detailed knowledge of how the vrings are created and deleted. The function vringh_notify() is added so vringh clients can notify the other side that buffers are added to the used-ring. Cc: Ohad Ben-Cohen Signed-off-by: Sjur Brændeland Signed-off-by: Rusty Russell (constified vringh_config) --- Reading git-diff-tree failed