diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2019-12-10 13:43:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-12 02:01:23 +0300 |
commit | ef343b35d46667668a099655fca4a5b2e43a5dfe (patch) | |
tree | 415a5973ef15aaa340021bce5c163b31dc422647 /include/uapi/linux/vm_sockets.h | |
parent | c5144fcbf25015b850e97a06a24b1ddfbc5579e8 (diff) | |
download | linux-ef343b35d46667668a099655fca4a5b2e43a5dfe.tar.xz |
vsock: add VMADDR_CID_LOCAL definition
The VMADDR_CID_RESERVED (1) was used by VMCI, but now it is not
used anymore, so we can reuse it for local communication
(loopback) adding the new well-know CID: VMADDR_CID_LOCAL.
Cc: Jorgen Hansen <jhansen@vmware.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/vm_sockets.h')
-rw-r--r-- | include/uapi/linux/vm_sockets.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/uapi/linux/vm_sockets.h b/include/uapi/linux/vm_sockets.h index 68d57c5e99bc..fd0ed7221645 100644 --- a/include/uapi/linux/vm_sockets.h +++ b/include/uapi/linux/vm_sockets.h @@ -99,11 +99,13 @@ #define VMADDR_CID_HYPERVISOR 0 -/* This CID is specific to VMCI and can be considered reserved (even VMCI - * doesn't use it anymore, it's a legacy value from an older release). +/* Use this as the destination CID in an address when referring to the + * local communication (loopback). + * (This was VMADDR_CID_RESERVED, but even VMCI doesn't use it anymore, + * it was a legacy value from an older release). */ -#define VMADDR_CID_RESERVED 1 +#define VMADDR_CID_LOCAL 1 /* Use this as the destination CID in an address when referring to the host * (any process other than the hypervisor). VMCI relies on it being 2, but |