Re: [Qemu-devel] [RFC PATCH v5 2/4] Migration thread mutex

2011-08-27 Thread Marcelo Tosatti
On Tue, Aug 23, 2011 at 11:12:48PM -0400, Umesh Deshpande wrote: > ramlist mutex is implemented to protect the RAMBlock list traversal in the > migration thread from their addition/removal from the iothread. > > Note: Combination of iothread mutex and migration thread mutex works as a > rw-lock. B

[Qemu-devel] [RFC PATCH v5 2/4] Migration thread mutex

2011-08-23 Thread Umesh Deshpande
ramlist mutex is implemented to protect the RAMBlock list traversal in the migration thread from their addition/removal from the iothread. Note: Combination of iothread mutex and migration thread mutex works as a rw-lock. Both mutexes are acquired while modifying the ram_list members or RAM block