Summary of changes: - Add VMCI_VMWZC_DST_RID to the reserved hypervisor datagram resource id enum and bump VMCI_RESOURCE_MAX accordingly
The hypervisor-side zero-copy buffer sharing service occupies its own resource id in the hypervisor datagram namespace. Reserve a name for it alongside the existing entries rather than leaving callers to open-code the number, following the procedure described in that enum's own comment: the set of resource ids available in the hypervisor is fixed and statically known, and a new caller extends it by incrementing the maximum. VMCI_RESOURCE_MAX has no in-tree users, so the bump does not affect existing code. The new entry likewise has no in-tree user until the vmw_zerocopy driver, added later in this series, references it. Signed-off-by: Rishi Chhibber <[email protected]> Reviewed-by: Alexey Makhalov <[email protected]> Reviewed-by: Vishnu Dasa <[email protected]> --- include/linux/vmw_vmci_defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/vmw_vmci_defs.h b/include/linux/vmw_vmci_defs.h index 60c9eacd2cf3..4435d2ff1241 100644 --- a/include/linux/vmw_vmci_defs.h +++ b/include/linux/vmw_vmci_defs.h @@ -179,7 +179,8 @@ enum { VMCI_UNITY_PBRPC_REGISTER = 14, VMCI_RPC_PRIVILEGED = 15, VMCI_RPC_UNPRIVILEGED = 16, - VMCI_RESOURCE_MAX = 17, + VMCI_VMWZC_DST_RID = 17, + VMCI_RESOURCE_MAX = 18, }; /* -- 2.52.0

