Re: [PATCH RFC V2 2/2] kvm PLE handler: Choose better candidate fordirected yield

From: Raghavendra K T
Date: Tue Jul 10 2012 - 23:04:09 EST


On 07/11/2012 02:20 AM, Ingo Molnar wrote:

* Raghavendra K T<raghavendra.kt@xxxxxxxxxxxxxxxxxx> wrote:

--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1595,6 +1595,9 @@ void kvm_vcpu_on_spin(struct kvm_vcpu *me)
continue;
if (waitqueue_active(&vcpu->wq))
continue;
+ if (!kvm_arch_vcpu_check_and_update_eligible(vcpu)) {
+ continue;
+ }

Saw this fly by for a second time and now it annoyed me enough
to mention it: those curly braces are superfluous and should be
dropped.


Oops! Sorry.will remove {} and resend with Rik's reviewed-by. TBH,
block got simplified after iterations (local), this one leftout. my
mistake.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/