Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753930AbdCBBSK (ORCPT ); Wed, 1 Mar 2017 20:18:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37696 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753490AbdCBBSJ (ORCPT ); Wed, 1 Mar 2017 20:18:09 -0500 Date: Thu, 2 Mar 2017 09:15:33 +0800 From: Peter Xu To: Radim =?utf-8?B?S3LEjW3DocWZ?= Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Andrew Jones , Marc Zyngier , Christian Borntraeger , Cornelia Huck , James Hogan , Paul Mackerras , Christoffer Dall , David Hildenbrand Subject: Re: [PATCH v2 2/5] KVM: add KVM request variants without barrier Message-ID: <20170302011533.GI13926@pxdev.xzpeter.org> References: <20170224195002.28030-1-rkrcmar@redhat.com> <20170224195002.28030-3-rkrcmar@redhat.com> <20170228073424.GL10022@pxdev.xzpeter.org> <20170228074051.GM10022@pxdev.xzpeter.org> <20170301170248.GD20547@potion> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170301170248.GD20547@potion> User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 02 Mar 2017 01:15:43 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1643 Lines: 40 On Wed, Mar 01, 2017 at 06:02:49PM +0100, Radim Krčmář wrote: > 2017-02-28 15:40+0800, Peter Xu: > > On Tue, Feb 28, 2017 at 03:34:24PM +0800, Peter Xu wrote: > > > > [...] > > > >> > diff --git a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c > >> > index ee4af898bcf6..552ae2b5e911 100644 > >> > --- a/arch/mips/kvm/emulate.c > >> > +++ b/arch/mips/kvm/emulate.c > >> > @@ -865,7 +865,7 @@ enum emulation_result kvm_mips_emul_wait(struct kvm_vcpu *vcpu) > >> > * check if any I/O interrupts are pending. > >> > */ > >> > if (kvm_request_test_and_clear(KVM_REQ_UNHALT, vcpu)) { > >> > - clear_bit(KVM_REQ_UNHALT, &vcpu->requests); > >> > + __kvm_request_clear(KVM_REQ_UNHALT, vcpu); > >> > >> Shall we just remove above line since we cleared it already? > > > > Please ignore this since I see patch 4. :-) > > > > It'll be nice if patch 4 will be before this one, but it's trivial. > > I put [4/5] there to demonstrate that this error would have been less > likely with the new naming. I didn't expect that reviewers would go > through the coccinelle transformation. :) Yeah, I noticed it mostly because it's the first one touched. Meanwhile, I think it's still worthwhile to go through the patch even it's from cocinelle since sometimes coccinelle might do something that we (or only me?) didn't expect. E.g., afaik it cannot handle well with over-80-chars lines, so we need to wrap them on our own (I got a patch from the author though to fix this, but not yet tested). And also since patches are going to be merged changes, it just feel unsafe if we merge something without reading it. :) Thanks, -- peterx