uio_hv_generic: support sub-channels
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 5 Feb 2018 18:40:27 +0000 (10:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 17:57:17 +0000 (09:57 -0800)
commit37b96a4931dba07cebbf07092e55d1562155412b
tree865b31a14739197399ccc79d62d9e5ad555dbca6
parentcf21be919c5960da2eb7bc91f8056adb27b56712
uio_hv_generic: support sub-channels

Use sysfs to allow supporting sub-channels. The userspace application
makes request to host to create sub-channels and the UIO kernel
driver populates the sysfs per-channel directory with a binary
attribute file that can be used to read/write ring.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/stable/sysfs-bus-vmbus
Documentation/driver-api/uio-howto.rst
drivers/uio/uio_hv_generic.c