Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp919006rwi; Thu, 27 Oct 2022 09:01:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6GXa3U/vdm7pySvFaWnY3FMSAredJziW2TKZDYI4t6InZpms/c+pNsbrOFjH287QyHcdNR X-Received: by 2002:a65:5184:0:b0:439:14cb:fbe4 with SMTP id h4-20020a655184000000b0043914cbfbe4mr41799289pgq.166.1666886489787; Thu, 27 Oct 2022 09:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666886489; cv=none; d=google.com; s=arc-20160816; b=p4E5uhzdF6/b2dhzqVOrhFQXhXJiDc+Owxld591xjAnLHG35ES8zQ73LDERqoc9z9L GauubGnTMkoDgRm2tEcc7Cen+TF/2/VqGF+beMX0YLcsPCEuPtcQrj6r9w4pWYWvTxPx HFiZpB73FmLuLpZGr63qg1rU58xOHYp9mr7MkdyKJiqz3YWsat276eY9QpWQgf75HaqD dBuPaxw6CmTF1Kbi768oM5q2lRkpm/5/V399Sayn6jEYk5s8vKQENsHpH2KGvHDq6PrB 1SCJrzG8B9CLyN7SpAHjnRuXKP78ayKmvQAIMsUasFMjaTvbWX+XcWSycS5MBqwrBlh9 tzGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Gl7TTiZu67z+KceFJoWbbpftR9c8WB/oiC+Xa0ObMYA=; b=DIQDxSQ6Bt/PxZLaWlcjVWyoBxwsdsTLSFA52EyZGzLRUBrcXZkzjWwJwAzX+/MH7f F9zqwZSyN5+A80HTSK6inis3F882m//lBs7+DhGeGRj2iORTvUtpIbl4pdFFX6dnv3+G DsOjsGvpffCn9tv7sr5wtdzjFtW5jAHa9OgPwIP4eA192zb9+L8u/jMSjFZpOzPkyXMY uHhcSDEzssznIFUekuh6RWom7Esf7AuSSAmukyhSafPv2beBrna/26+/CTaWNp0RIEIm 3mk0osPwUzNG32z1rQ2UN+2NpFLaL8aLVg8OFcZ3w2bY9LNNvUdzQzAm22LScFuZD35n V3Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=sjqgUwfR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a170902e5d100b0018661a75a4fsi2213329plf.238.2022.10.27.09.01.10; Thu, 27 Oct 2022 09:01:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=sjqgUwfR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235623AbiJ0Poe (ORCPT + 99 others); Thu, 27 Oct 2022 11:44:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235321AbiJ0Poc (ORCPT ); Thu, 27 Oct 2022 11:44:32 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00FF925E4 for ; Thu, 27 Oct 2022 08:44:29 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id f5-20020a17090a4a8500b002131bb59d61so5954913pjh.1 for ; Thu, 27 Oct 2022 08:44:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Gl7TTiZu67z+KceFJoWbbpftR9c8WB/oiC+Xa0ObMYA=; b=sjqgUwfRJQ3b0vOGCj8YAk2syiaqov15hRa2+2j4g7M4liFUX7T+YYus50F5aPTGBR 0ncqP7fzYeUyV4G5znJHyFsVe1hhGTkTMuLKExktW/SsIPIBGTn1zjrsTL6blZC54ilT XhX7MCjtZ6c3Ymzu1YDSrT7Ov5/8NcAwJCuT1WDDE6FDOy3o0vqg7CytJU3L4GCebgAc QMK1P04iaHjyDinqPa00nnnmxiMkeM5BI1pra8EusuUSSYCv6Rn5nB2HkB4LsAYxy3X2 2Tt4JuoxVoxEBWomfGJHhFow+1GOWad3iCmgLEYYz+KfWORfIvfxPn7l4Csda2gTu9QY F6lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Gl7TTiZu67z+KceFJoWbbpftR9c8WB/oiC+Xa0ObMYA=; b=taXkAeZ25i4NMTmrnHpUg8ObEhf8/ojI1kNYm+q74uQDCQHfHp5JYtZPQJEjsV8hsi n1FSSof5trN6DXKILrv7OBT6oYXxlSY43KzcdiCN4iifun3axhEJjw761FR3akP+gfhJ 2FybipH8G4l6nvQDU55Mewgc5Ko46Tcf0VwNtPC9k+/eegFBQ3XL2ATro7yAKr4PFy6I Ms5W+cRCTmHlFtLtCA86oAMDRpZdjPlhbfcdGtKXx2P3FYSaedQ7g+4N4OD8ecPiY3L2 hDEkYwW9Tabc+va8H1C0rJrJifZ3NMhWns0XreO9zrAOMPClX9GiUkZyKRr1RO2JxZlC Ne+Q== X-Gm-Message-State: ACrzQf2fSRIwCMlXaK2MPtLE6qrnLTGugVS5tP+zIZUgW1jAYS9cJnfJ rZtMGDCXtHOcuEPJK8Rs1ypA6A== X-Received: by 2002:a17:90a:4bcb:b0:212:def0:cb00 with SMTP id u11-20020a17090a4bcb00b00212def0cb00mr10561273pjl.61.1666885468404; Thu, 27 Oct 2022 08:44:28 -0700 (PDT) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id x190-20020a6231c7000000b00563ce1905f4sm1354535pfx.5.2022.10.27.08.44.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 08:44:28 -0700 (PDT) Date: Thu, 27 Oct 2022 15:44:24 +0000 From: Sean Christopherson To: "Wang, Wei W" Cc: David Matlack , "pbonzini@redhat.com" , "vipinsh@google.com" , "ajones@ventanamicro.com" , "eric.auger@redhat.com" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v1 00/18] KVM selftests code consolidation and cleanup Message-ID: References: <20221024113445.1022147-1-wei.w.wang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 27, 2022, Wang, Wei W wrote: > On Thursday, October 27, 2022 5:23 AM, David Matlack: > > I haven't dug too much into the actual code yet, but I have some high level > > feedback based on a quick look through the series: > > > > - Use the format "KVM: selftests: " for the shortlog. > > I know it's not common to see so far, but curious is this the required format? It's definitely the preferred format. > I didn't find where it's documented. Heh, for all shortlog scopes, the "documentation" is `git log --pretty=oneline` :-) > If it's indeed a requirement, probably we also need to enhance checkpatch.pl > to detect this. I like the idea in theory, but that'd be a daunting task to set up, and quite the maintenance nightmare. There are probably thousands of file => scope mappings throughout the kernel, with any number of exceptions and arbitrary rules. > If it's not required, I think it is more obvious to have /sub_field in the title, > e.g. selftests/hardware_disable_test, to outline which specific part of > selftests the patch is changing. (the selftests are growing larger with many > usages independent of each other). I agree that "KVM: selftests:" is a rather large umbrella, but it's not obvious that "KVM: selfetest/" is unequivocally better, e.g. if someone is making a change to x86_64/vmx_exception_with_invalid_guest_state.c, the scope will be KVM: selftests/x86_64/vmx_exception_with_invalid_guest_state: or KVM: selftests/vmx_exception_with_invalid_guest_state: which doesn't leave a whole lot of room for an actual shortlog. When reviewing selftests patches, I do find myself pausing sometimes to see exactly what file/test is being modified, but in almost all cases a quick glance at the diffstat provides the answer. And on the flip side, having all selftests patches exactly match "KVM: selftests:" makes it super easy to identify selftest changes, i.e. it's mostly a wash overall in terms of efficiency (for me at least).