[Top][All Lists]

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

Re: [Qemu-devel] [PATCH] memory: unregister AddressSpace MemoryListener

From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] memory: unregister AddressSpace MemoryListener within BQL
Date: Wed, 11 Feb 2015 14:26:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 11/02/2015 14:16, Michael Roth wrote:
> Since the AddressSpace is a fields of PCIDevice, do we maybe need to make
> sure it's refcount doesn't drop to 0 prior to the RCU callback taking
> place?

Yes, but then the problem is that objects are finalized outside the big
QEMU lock.

This is a pretty large can of worms, because finalizing an object can in
turn finalize other objects, which means a lot of mutexes have to be
introduced.  I'll think a bit more about it.


reply via email to

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