]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vringh: host-side implementation of virtio rings.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 18 Feb 2013 22:35:24 +0000 (09:05 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Feb 2013 20:47:28 +0000 (07:17 +1030)
commit4d8dc8b447486a85a0f7749321468035c5f46284
tree3f25d5fe4c1513e7d42ca490279b226c311d3e4f
parentd4bcb328e61fd6a3a5fd84f544a4bae03a655eae
vringh: host-side implementation of virtio rings.

Getting use of virtio rings correct is tricky, and a recent patch saw
an implementation of in-kernel rings (as separate from userspace).

This abstracts the business of dealing with the virtio ring layout
from the access (userspace or direct); to do this, we use function
pointers, which gcc inlines correctly.

There are patches pending to make vhost use this interface, but it's
being merged now for the CAIF virtio patches, which want it
immediately.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/Makefile
drivers/vhost/Kconfig
drivers/vhost/Kconfig.tcm
drivers/vhost/Makefile
drivers/vhost/vringh.c [new file with mode: 0644]
include/linux/vringh.h [new file with mode: 0644]