From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753494Ab2GJUu1 (ORCPT ); Tue, 10 Jul 2012 16:50:27 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:59241 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752316Ab2GJUuY (ORCPT ); Tue, 10 Jul 2012 16:50:24 -0400 Date: Tue, 10 Jul 2012 22:50:18 +0200 From: Ingo Molnar 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 Subject: Re: [PATCH RFC V2 2/2] kvm PLE handler: Choose better candidate for directed yield 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 Content-Disposition: inline In-Reply-To: <20120710193138.16440.31791.sendpatchset@codeblue> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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