summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAsias He <asias@redhat.com>2016-07-28 15:36:34 +0100
committerAlistair Strachan <astrachan@google.com>2019-01-15 17:08:35 -0800
commit01a1cf6063b4d6c75c422fbe2bb664a5739f5e9d (patch)
tree08fe5c4665fa221857582dc32769fcfb6517812d /include
parent60c196454277cdec9a96544a302081eab17c2f25 (diff)
UPSTREAM: VSOCK: Introduce vhost_vsock.ko
VM sockets vhost transport implementation. This driver runs on the host. Signed-off-by: Asias He <asias@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> (cherry picked from commit 433fc58e6bf2c8bd97e57153ed28e64fd78207b8) Bug: 121166534 Test: Ran cuttlefish with android-4.4 + VSOCKETS, VMWARE_VMCI_VSOCKETS Signed-off-by: Cody Schuffelen <schuffelen@google.com> Change-Id: Id90d852ffd498a7d89075cddb6d8ed0b9af5e69f
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/vhost.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h
index 8cb0a65afd64..56b7ab584cc0 100644
--- a/include/uapi/linux/vhost.h
+++ b/include/uapi/linux/vhost.h
@@ -203,4 +203,9 @@ struct vhost_scsi_target {
#define VHOST_SCSI_SET_EVENTS_MISSED _IOW(VHOST_VIRTIO, 0x43, __u32)
#define VHOST_SCSI_GET_EVENTS_MISSED _IOW(VHOST_VIRTIO, 0x44, __u32)
+/* VHOST_VSOCK specific defines */
+
+#define VHOST_VSOCK_SET_GUEST_CID _IOW(VHOST_VIRTIO, 0x60, __u64)
+#define VHOST_VSOCK_SET_RUNNING _IOW(VHOST_VIRTIO, 0x61, int)
+
#endif