qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

memory: use RCU_READ_LOCK_GUARD

Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

+1 -2
+1 -2
include/exec/memory.h
··· 2171 2171 2172 2172 if (__builtin_constant_p(len)) { 2173 2173 if (len) { 2174 - rcu_read_lock(); 2174 + RCU_READ_LOCK_GUARD(); 2175 2175 fv = address_space_to_flatview(as); 2176 2176 l = len; 2177 2177 mr = flatview_translate(fv, addr, &addr1, &l, false, attrs); ··· 2182 2182 result = flatview_read_continue(fv, addr, attrs, buf, len, 2183 2183 addr1, l, mr); 2184 2184 } 2185 - rcu_read_unlock(); 2186 2185 } 2187 2186 } else { 2188 2187 result = address_space_read_full(as, addr, attrs, buf, len);