tcg: add memory barriers in page_find_alloc accesses
commit6940fab84b826175cf90d48d0e3da1b76518f5b4
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Aug 2015 07:41:40 +0000 (12 09:41 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Sep 2015 13:34:55 +0000 (9 15:34 +0200)
tree05d14ec8c28214f483dbbb7cc384b45a901153b5
parent2496ff1311283480f9de3614080b8842d838ade4
tcg: add memory barriers in page_find_alloc accesses

page_find is reading the radix tree outside all locks, so it has to
use the RCU primitives.  It does not need RCU critical sections
because the PageDescs are never removed, so there is never a need
to wait for the end of code sections that use a PageDesc.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
translate-all.c