[RESEND PATCH RFC V5 3/3] kvm: Choose better candidate for directed yield

2012-07-19 Thread Raghavendra K T
Currently, on a large vcpu guests, there is a high probability of yielding to the same vcpu who had recently done a pause-loop exit or cpu relax intercepted. Such a yield can lead to the vcpu spinning again and hence degrade the performance. The patchset keeps track of the pause loop exit/cpu rela

Re: [PATCH RFC V5 3/3] kvm: Choose better candidate for directed yield

2012-07-18 Thread Raghavendra K T
On 07/18/2012 07:08 PM, Raghavendra K T wrote: From: Raghavendra K T +bool kvm_vcpu_eligible_for_directed_yield(struct kvm_vcpu *vcpu) +{ + bool eligible; + + eligible = !vcpu->spin_loop.in_spin_loop || + (vcpu->spin_loop.in_spin_loop&& +v

[PATCH RFC V5 3/3] kvm: Choose better candidate for directed yield

2012-07-18 Thread Raghavendra K T
From: Raghavendra K T Currently, on a large vcpu guests, there is a high probability of yielding to the same vcpu who had recently done a pause-loop exit or cpu relax intercepted. Such a yield can lead to the vcpu spinning again and hence degrade the performance. The patchset keeps track of the