BACKPORT: VSOCK: Introduce virtio_vsock_common.ko

This module contains the common code and header files for the following
virtio_transporto and vhost_vsock kernel modules.

BUG=chromium:763970
TEST=build caroline with USE=kvm_host

Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 06a8fc78367d070720af960dcecec917d3ae5f3b)
Signed-off-by: Sonny Rao <sonnyrao@chromium.org>
[SR: 3.18 backport notes:
  - remove trace enum usage from ftrace header as 3.18 doesn't have support
  - use memcpy_{to,from}iovec instead of using memcpy_{to,from}_msg
     because 3.18 doesn't have the memcpy_to_msg function
  - and change usage of msghdr to iovec in transport callbacks and struct
     virtio_vsock_pkt_info
  - remove "kern" argument to __vsock_create as this was added later and
     was set to 0
  - some trivial context conflicts]
 Conflicts:
	MAINTAINERS
	include/uapi/linux/Kbuild
	include/uapi/linux/virtio_ids.h

Change-Id: Iff501b7eac6dc5d360772407f1103e14564372a7
Reviewed-on: https://chromium-review.googlesource.com/1058940
Commit-Ready: Sonny Rao <sonnyrao@chromium.org>
Tested-by: Sonny Rao <sonnyrao@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
8 files changed