]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Drivers: hv: util: introduce hv_utils_transport abstraction
authorVitaly Kuznetsov <vkuznets@redhat.com>
Sun, 12 Apr 2015 01:07:51 +0000 (18:07 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:29:08 +0000 (18:29 -0800)
commit2f379181e9057531268e91dc807f057cd3e47170
tree5b5df6e69845bab89a9aa7790377c7ef8cc2a8a8
parent3e5978f42f0aaea5fe715552b0f313892c7967cc
Drivers: hv: util: introduce hv_utils_transport abstraction

The intention is to make KVP/VSS drivers work through misc char devices.
Introduce an abstraction for kernel/userspace communication to make the
migration smoother. Transport operational mode (netlink or char device)
is determined by the first received message. To support driver upgrades
the switch from netlink to chardev operational mode is supported.

Every hv_util daemon is supposed to register 2 callbacks:
1) on_msg() to get notified when the userspace daemon sent a message;
2) on_reset() to get notified when the userspace daemon drops the connection.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Tested-by: Alex Ng <alexng@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 14b50f80c32dd4e84b6baeaa8bf4049cc5ecf56d)

Orabug: 21886720
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/hv/Makefile
drivers/hv/hv_utils_transport.c [new file with mode: 0644]
drivers/hv/hv_utils_transport.h [new file with mode: 0644]