Re: [Qemu-devel] [RFC PATCH v2 2/3] fine grained qemu_mutex locking for migration

2011-08-02 Thread Marcelo Tosatti
On Fri, Jul 29, 2011 at 04:57:25PM -0400, Umesh Deshpande wrote: > In the migration thread, qemu_mutex is released during the most time consuming > part. i.e. during is_dup_page which identifies the uniform data pages and > during > the put_buffer. qemu_mutex is also released while blocking on sel

Re: [Qemu-devel] [RFC PATCH v2 2/3] fine grained qemu_mutex locking for migration

2011-08-01 Thread Paolo Bonzini
On 07/29/2011 10:57 PM, Umesh Deshpande wrote: +qemu_mutex_unlock_iothread(); while (s->state == MIG_STATE_ACTIVE) { if (migrate_fd_check_expire()) { +qemu_mutex_lock_iothread(); buffered_rate_tick(s->file); +qemu_mutex_unlock_iothread();

[Qemu-devel] [RFC PATCH v2 2/3] fine grained qemu_mutex locking for migration

2011-07-29 Thread Umesh Deshpande
In the migration thread, qemu_mutex is released during the most time consuming part. i.e. during is_dup_page which identifies the uniform data pages and during the put_buffer. qemu_mutex is also released while blocking on select to wait for the descriptor to become ready for writes. Signed-off-by: