From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [PATCH RFC V2 2/2] kvm PLE handler: Choose better candidate for directed yield Date: Tue, 10 Jul 2012 22:50:18 +0200 Message-ID: <20120710205018.GB16986@gmail.com> References: <20120710193056.16440.40112.sendpatchset@codeblue> <20120710193138.16440.31791.sendpatchset@codeblue> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20120710193138.16440.31791.sendpatchset@codeblue> Sender: kvm-owner@vger.kernel.org List-Archive: List-Post: To: Raghavendra K T Cc: "H. Peter Anvin" , Thomas Gleixner , Marcelo Tosatti , Ingo Molnar , Avi Kivity , Rik van Riel , S390 , Carsten Otte , Christian Borntraeger , KVM , chegu vinod , "Andrew M. Theurer" , LKML , X86 , Gleb Natapov , linux390@de.ibm.com, Srivatsa Vaddagiri , Joerg Roedel List-ID: * Raghavendra K T 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. Thanks, Ingo