OpenCloudOS-Kernel/drivers/misc/vmw_vmci
Jorgen Hansen eb94cd68ab VMCI: Doorbell create and destroy fixes
This change consists of two changes:

1) If vmci_doorbell_create is called when neither guest nor
   host personality as been initialized, vmci_get_context_id
   will return VMCI_INVALID_ID. In that case, we should fail
   the create call.
2) In doorbell destroy, we assume that vmci_guest_code_active()
   has the same return value on create and destroy. That may not
   be the case, so we may end up with the wrong refcount.
   Instead, destroy should check explicitly whether the doorbell
   is in the index table as an indicator of whether the guest
   code was active at create time.

Reviewed-by: Adit Ranadive <aditr@vmware.com>
Signed-off-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-28 08:26:21 -04:00
..
Kconfig Hoist memcpy_fromiovec/memcpy_toiovec into lib/ 2013-05-20 10:24:22 +09:30
Makefile VMCI: Some header and config files. 2013-01-08 16:15:57 -08:00
vmci_context.c
vmci_context.h
vmci_datagram.c misc/vmw_vmci: use kmemdup rather than duplicating its implementation 2015-09-20 19:27:58 -07:00
vmci_datagram.h
vmci_doorbell.c VMCI: Doorbell create and destroy fixes 2016-10-28 08:26:21 -04:00
vmci_doorbell.h VMCI: doorbell implementation. 2013-01-08 16:15:55 -08:00
vmci_driver.c VMCI: Doorbell create and destroy fixes 2016-10-28 08:26:21 -04:00
vmci_driver.h VMCI: Add support for virtual IOMMU 2013-08-27 21:42:12 -07:00
vmci_event.c VMCI: event handling implementation. 2013-01-08 16:15:55 -08:00
vmci_event.h VMCI: event handling implementation. 2013-01-08 16:15:55 -08:00
vmci_guest.c PCI: Move PCI_VENDOR_ID_VMWARE to pci_ids.h 2014-09-24 11:52:09 -06:00
vmci_handle_array.c VMCI: handle array implementation. 2013-01-08 16:15:55 -08:00
vmci_handle_array.h VMCI: handle array implementation. 2013-01-08 16:15:55 -08:00
vmci_host.c VMCI: use memdup_user(). 2016-08-31 13:18:10 +02:00
vmci_queue_pair.c mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros 2016-04-04 10:41:08 -07:00
vmci_queue_pair.h VMCI: Remove non-blocking/pinned queuepair support 2013-08-27 21:42:12 -07:00
vmci_resource.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
vmci_resource.h VMCI: resource object implementation. 2013-01-08 16:15:56 -08:00
vmci_route.c VMCI: routing implementation. 2013-01-08 16:15:56 -08:00
vmci_route.h VMCI: routing implementation. 2013-01-08 16:15:56 -08:00