dstContext = VMCIContext_Get(handle.context);
if (dstContext == NULL) {
VMCI_DEBUG_LOG(4, (LGPFX"Invalid context (ID=0x%x).\n", handle.context));
- return VMCI_ERROR_INVALID_ARGS;
+ return VMCI_ERROR_NOT_FOUND;
}
if (srcCID != handle.context) {
* handle. Hypervisor endpoints are not yet supported.
*
* Result:
- * VMCI_SUCCESS on success, VMCI_ERROR_INVALID_ARGS if handle is invalid.
+ * VMCI_SUCCESS on success,
+ * VMCI_ERROR_NOT_FOUND if handle isn't found,
+ * VMCI_ERROR_INVALID_ARGS if handle is invalid.
*
* Side effects:
* None.
resource = VMCIResource_Get(handle, VMCI_RESOURCE_TYPE_DOORBELL);
if (resource == NULL) {
- return VMCI_ERROR_INVALID_ARGS;
+ return VMCI_ERROR_NOT_FOUND;
}
entry = RESOURCE_CONTAINER(resource, VMCIDoorbellEntry, resource);
*privFlags = entry->privFlags;
ASSERT(VMCI_HostPersonalityActive());
- resource = VMCIResource_Get(handle, VMCI_RESOURCE_TYPE_DOORBELL);
- if (resource == NULL) {
+ if (VMCI_HANDLE_INVALID(handle)) {
VMCI_DEBUG_LOG(4,
(LGPFX"Notifying an invalid doorbell (handle=0x%x:0x%x).\n",
handle.context, handle.resource));
return VMCI_ERROR_INVALID_ARGS;
}
+
+ resource = VMCIResource_Get(handle, VMCI_RESOURCE_TYPE_DOORBELL);
+ if (resource == NULL) {
+ VMCI_DEBUG_LOG(4,
+ (LGPFX"Notifying an unknown doorbell (handle=0x%x:0x%x).\n",
+ handle.context, handle.resource));
+ return VMCI_ERROR_NOT_FOUND;
+ }
entry = RESOURCE_CONTAINER(resource, VMCIDoorbellEntry, resource);
if (entry->runDelayed) {
#ifndef _VMCI_VERSION_H_
#define _VMCI_VERSION_H_
-#define VMCI_DRIVER_VERSION 9.3.11.0
-#define VMCI_DRIVER_VERSION_COMMAS 9,3,11,0
-#define VMCI_DRIVER_VERSION_STRING "9.3.11.0"
+#define VMCI_DRIVER_VERSION 9.3.12.0
+#define VMCI_DRIVER_VERSION_COMMAS 9,3,12,0
+#define VMCI_DRIVER_VERSION_STRING "9.3.12.0"
#endif /* _VMCI_VERSION_H_ */