summaryrefslogtreecommitdiffstats
path: root/net/vmw_vsock/vmci_transport.h
diff options
context:
space:
mode:
authorReilly Grant <grantr@vmware.com>2013-03-14 11:55:41 +0000
committerDavid S. Miller <davem@davemloft.net>2013-03-15 08:26:26 -0400
commit2a89f9247ae43a2cf36fbc07b21b5792fc7b9efe (patch)
tree869acbbc9e9cf4ae92e7153b387dfccd0a76659e /net/vmw_vsock/vmci_transport.h
parent8a7fbfab4be39b8690543f3d29b26860d2f6c576 (diff)
downloadblackbird-op-linux-2a89f9247ae43a2cf36fbc07b21b5792fc7b9efe.tar.gz
blackbird-op-linux-2a89f9247ae43a2cf36fbc07b21b5792fc7b9efe.zip
VSOCK: Support VM sockets connected to the hypervisor.
The resource ID used for VM socket control packets (0) is already used for the VMCI_GET_CONTEXT_ID hypercall so a new ID (15) must be used when the guest sends these datagrams to the hypervisor. The hypervisor context ID must also be removed from the internal blacklist. Signed-off-by: Reilly Grant <grantr@vmware.com> Acked-by: Andy King <acking@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/vmw_vsock/vmci_transport.h')
-rw-r--r--net/vmw_vsock/vmci_transport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/vmw_vsock/vmci_transport.h b/net/vmw_vsock/vmci_transport.h
index 1bf991803ec0..fd88ea8924e4 100644
--- a/net/vmw_vsock/vmci_transport.h
+++ b/net/vmw_vsock/vmci_transport.h
@@ -28,6 +28,9 @@
/* The resource ID on which control packets are sent. */
#define VMCI_TRANSPORT_PACKET_RID 1
+/* The resource ID on which control packets are sent to the hypervisor. */
+#define VMCI_TRANSPORT_HYPERVISOR_PACKET_RID 15
+
#define VSOCK_PROTO_INVALID 0
#define VSOCK_PROTO_PKT_ON_NOTIFY (1 << 0)
#define VSOCK_PROTO_ALL_SUPPORTED (VSOCK_PROTO_PKT_ON_NOTIFY)
OpenPOWER on IntegriCloud