[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/7] memory: address_space_to_flatview needs RCU
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 0/7] memory: address_space_to_flatview needs RCU lock |
Date: |
Tue, 6 Mar 2018 09:16:38 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 06/03/2018 08:47, Alexey Kardashevskiy wrote:
> On 05/03/18 19:36, Paolo Bonzini wrote:
>> I noticed that the introduction of flatview_{read,write} placed
>> address_space_to_flatview outside the RCU lock. This is wrong and has
>> to be fixed, because address_space_to_flatview does an atomic_rcu_read.
>> These patches fix this one function at a time.
>
> out of curiosity - has this caused any actual bug? should be hard to
> reproduce, I suppose...
No, I just noticed it by code inspection, while looking at a
reimplementation of MemoryRegionCache (reverted in 2.9). One of the
differences between address_space_read and address_space_read_cached was
that the latter expects to be called within rcu_read_lock, so it was
surprising that address_space_read was expecting the same. :)
Paolo
- Re: [Qemu-devel] [PATCH 3/7] address_space_write: address_space_to_flatview needs RCU lock, (continued)
- [Qemu-devel] [PATCH 5/7] address_space_access_valid: address_space_to_flatview needs RCU lock, Paolo Bonzini, 2018/03/05
- [Qemu-devel] [PATCH 6/7] address_space_map: address_space_to_flatview needs RCU lock, Paolo Bonzini, 2018/03/05
- [Qemu-devel] [PATCH 4/7] address_space_read: address_space_to_flatview needs RCU lock, Paolo Bonzini, 2018/03/05
- [Qemu-devel] [PATCH 7/7] address_space_rw: address_space_to_flatview needs RCU lock, Paolo Bonzini, 2018/03/05
- Re: [Qemu-devel] [PATCH 0/7] memory: address_space_to_flatview needs RCU lock, Alexey Kardashevskiy, 2018/03/06
- Re: [Qemu-devel] [PATCH 0/7] memory: address_space_to_flatview needs RCU lock,
Paolo Bonzini <=