memory: avoid ref/unref in memory_region_find
commit2b647668c9092dbc26e36a2ece9647cc2f00e05b
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 May 2013 10:40:44 +0000 (17 12:40 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Feb 2015 15:55:10 +0000 (2 16:55 +0100)
treea3b4dce04c778c5c8a81f1063c4e2c566976e824
parent374f2981d1f10bc4307f250f24b2a7ddb9b14be0
memory: avoid ref/unref in memory_region_find

Do the entire lookup under RCU, which avoids atomic operations
in flatview_ref and flatview_unref.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
memory.c