From: Marcelo T. <mto...@re...> - 2008-05-09 14:18:33
|
On Fri, May 09, 2008 at 10:40:47AM +0300, Avi Kivity wrote: > >Unfortunately it can't use wait_event_interruptible() due to > >vcpu_put/vcpu_load. > > > > > > schedule() will call vcpu_put()/vcpu_load() for us through preempt > notifiers. I feel a little uneasy about it, but no concreate reason why > not to rely on it. The preempt notifiers hook call kvm_arch_vcpu_load / kvm_arch_vcpu_put, which won't unlock the vcpu mutex, right? I worry about a possible deadlock where some other operation that requires the vcpu mutex happens but the vcpu thread itself is in hlt. |