qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 07/15] memory: avoid ref/unref in memory_region_


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 07/15] memory: avoid ref/unref in memory_region_find
Date: Mon, 26 Jan 2015 10:19:27 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


On 26/01/2015 07:24, Fam Zheng wrote:
>> > Do the entire lookup under RCU, which avoids atomic operations.
> address_space_get_flatview() already is RCU protected, I don't see why this
> patch is necessary. Could you explain?

It's just an optimization; flatview_ref/flatview_unref do
atomic_inc/atomic_dec and this patch avoids that.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]