Re: [PATCH 4/8] KVM: avoid unnecessary wait for a async pf

2010-10-28 Thread Xiao Guangrong
On 10/27/2010 06:42 PM, Gleb Natapov wrote: On Wed, Oct 27, 2010 at 05:04:58PM +0800, Xiao Guangrong wrote: In current code, it checks async pf completion out of the wait context, like this: if (vcpu-arch.mp_state == KVM_MP_STATE_RUNNABLE !vcpu-arch.apf.halted)

[PATCH 4/8] KVM: avoid unnecessary wait for a async pf

2010-10-27 Thread Xiao Guangrong
In current code, it checks async pf completion out of the wait context, like this: if (vcpu-arch.mp_state == KVM_MP_STATE_RUNNABLE !vcpu-arch.apf.halted) r = vcpu_enter_guest(vcpu); else { ..

Re: [PATCH 4/8] KVM: avoid unnecessary wait for a async pf

2010-10-27 Thread Gleb Natapov
On Wed, Oct 27, 2010 at 05:04:58PM +0800, Xiao Guangrong wrote: In current code, it checks async pf completion out of the wait context, like this: if (vcpu-arch.mp_state == KVM_MP_STATE_RUNNABLE !vcpu-arch.apf.halted) r = vcpu_enter_guest(vcpu);