Lines Matching full:context

18  * devices.  Will set the source context if it is invalid.
41 /* Must have a valid destination context. */ in vmci_route()
42 if (VMCI_INVALID_ID == dst->context) in vmci_route()
46 if (VMCI_HYPERVISOR_CONTEXT_ID == dst->context) { in vmci_route()
63 /* And we cannot send if the source is the host context. */ in vmci_route()
64 if (VMCI_HOST_CONTEXT_ID == src->context) in vmci_route()
69 * respect it (both context and resource are invalid). in vmci_route()
70 * However, if they passed only an invalid context, in vmci_route()
72 * should set the real context here before passing it in vmci_route()
75 if (VMCI_INVALID_ID == src->context && in vmci_route()
77 src->context = vmci_get_context_id(); in vmci_route()
85 if (VMCI_HOST_CONTEXT_ID == dst->context) { in vmci_route()
92 * way to remove any ambiguity from the host context. in vmci_route()
94 if (src->context == VMCI_HYPERVISOR_CONTEXT_ID) { in vmci_route()
112 /* If no source context then use the current. */ in vmci_route()
113 if (VMCI_INVALID_ID == src->context) in vmci_route()
114 src->context = vmci_get_context_id(); in vmci_route()
130 if (VMCI_INVALID_ID == src->context) { in vmci_route()
133 * valid context. Otherwise we can use the in vmci_route()
134 * host context. in vmci_route()
139 src->context = VMCI_HOST_CONTEXT_ID; in vmci_route()
152 /* It will have a context if it is meant for a guest. */ in vmci_route()
153 if (vmci_ctx_exists(dst->context)) { in vmci_route()
154 if (VMCI_INVALID_ID == src->context) { in vmci_route()
157 * must have a valid context. in vmci_route()
159 * context. in vmci_route()
165 src->context = VMCI_HOST_CONTEXT_ID; in vmci_route()
166 } else if (VMCI_CONTEXT_IS_VM(src->context) && in vmci_route()
167 src->context != dst->context) { in vmci_route()
173 * VM since there is a valid context. in vmci_route()
185 * without an active context, and we can't in vmci_route()
208 /* If no source context then use the current context. */ in vmci_route()
209 if (VMCI_INVALID_ID == src->context) in vmci_route()
210 src->context = vmci_get_context_id(); in vmci_route()