Re: [Qemu-devel] [PATCH v2 10/23] RISC-V: Hold rcu_read_lock when accessing memory

2018-03-10 Thread Philippe Mathieu-Daudé
Hi Michael, On 03/09/2018 05:12 AM, Michael Clark wrote: > From reading other code that accesses memory regions directly, > it appears that the rcu_read_lock needs to be held. Note: the > original code for accessing RAM directly was added because > there is no other way to use atomic_cmpxchg on gu

[Qemu-devel] [PATCH v2 10/23] RISC-V: Hold rcu_read_lock when accessing memory

2018-03-08 Thread Michael Clark
>From reading other code that accesses memory regions directly, it appears that the rcu_read_lock needs to be held. Note: the original code for accessing RAM directly was added because there is no other way to use atomic_cmpxchg on guest physical address space. Cc: Sagar Karandikar Cc: Bastian Ko