linux/drivers/misc/vmw_vmci
Jorgen Hansen f42a0fd13b VMCI: Use 32bit atomics for queue headers on X86_32
This change restricts the reading and setting of the head and tail
pointers on 32bit X86 to 32bit for both correctness and
performance reasons. On uniprocessor X86_32, the atomic64_read
may be implemented as a non-locked cmpxchg8b. This may result in
updates to the pointers done by the VMCI device being overwritten.
On MP systems, there is no such correctness issue, but using 32bit
atomics avoids the overhead of the locked 64bit operation. All this
is safe because the queue size on 32bit systems will never exceed
a 32bit value.

Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-07 21:36:02 -08:00
..
Kconfig
Makefile
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.h
vmci_driver.c VMCI: Use 32bit atomics for queue headers on X86_32 2016-02-07 21:36:02 -08:00
vmci_driver.h
vmci_event.c
vmci_event.h
vmci_guest.c
vmci_handle_array.c
vmci_handle_array.h
vmci_host.c char: make misc_deregister a void function 2015-08-05 10:35:49 -07:00
vmci_queue_pair.c VMCI: Guard against overflow in queue pair allocation 2015-03-25 11:32:15 +01:00
vmci_queue_pair.h
vmci_resource.c
vmci_resource.h
vmci_route.c
vmci_route.h