[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC] use little granularity lock to substitue qemu_mutex_l
Liu Ping Fan
[Qemu-devel] [RFC] use little granularity lock to substitue qemu_mutex_lock_iothread
Thu, 21 Jun 2012 23:06:56 +0800
Nowadays, we use qemu_mutex_lock_iothread()/qemu_mutex_unlock_iothread() to
protect the race to access the emulated dev launched by vcpu threads & iothread.
But this lock is too big. We can break it down.
These patches separate the CPUArchState's protection from the other devices, so
can have a per-cpu lock for each CPUArchState, not the big lock any longer.
[Qemu-devel] [PATCH 2/2] kvm: use per-cpu lock to free vcpu thread out of the big lock, Liu Ping Fan, 2012/06/21