Roman Dementiev 63af6fcfe1 rwlock: add HTM lock elision for x86
This patch adds methods that use hardware memory transactions (HTM) on
fast-path for rwlock (a.k.a. lock elision). Here the methods are implemented
for x86 using Restricted Transactional Memory instructions (Intel(r)
Transactional Synchronization Extensions). The implementation fall-backs to
the normal rwlock if HTM is not available or memory transactions fail. This is
not a replacement for all rwlock usages since not all critical sections
protected by locks are friendly to HTM. For example, an attempt to perform
a HW I/O operation inside a hardware memory transaction always aborts
the transaction since the CPU is not able to roll-back should the transaction
fail. Therefore, hardware transactional locks are not advised to be used around
rte_eth_rx_burst() and rte_eth_tx_burst() calls.

Signed-off-by: Roman Dementiev <roman.dementiev@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2015-06-19 16:24:48 +02:00
..
2015-02-26 00:08:25 +01:00
2015-03-10 12:17:31 +01:00
2015-06-12 11:10:10 +02:00
2015-06-12 11:10:10 +02:00
2015-06-12 11:10:10 +02:00
2015-03-10 12:15:14 +01:00
2014-11-25 13:30:23 +01:00
2014-11-25 13:30:23 +01:00
2015-02-26 00:08:25 +01:00
2015-02-24 20:22:24 +01:00
2015-06-19 16:24:48 +02:00