Files
android_kernel_xiaomi_sm8450/arch/x86/kvm
Michael S. Tsirkin 01b71917b5 kvm: optimize out smp_mb after srcu_read_unlock
I noticed that srcu_read_lock/unlock both have a memory barrier,
so just by moving srcu_read_unlock earlier we can get rid of
one call to smp_mb() using smp_mb__after_srcu_read_unlock instead.

Unsurprisingly, the gain is small but measureable using the unit test
microbenchmark:
before
        vmcall in the ballpark of 1410 cycles
after
        vmcall in the ballpark of 1360 cycles

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
2013-11-06 09:32:31 +02:00
..
2013-10-30 18:54:39 +01:00
2013-10-30 19:02:03 +01:00
2013-10-30 19:02:03 +01:00
2012-08-06 16:04:57 +03:00
2013-06-27 14:20:51 +03:00
2013-10-31 11:55:15 +01:00