Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA764C05027 for ; Thu, 2 Feb 2023 18:51:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233044AbjBBSvz (ORCPT ); Thu, 2 Feb 2023 13:51:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232387AbjBBSvw (ORCPT ); Thu, 2 Feb 2023 13:51:52 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F305D410A6 for ; Thu, 2 Feb 2023 10:51:51 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id jh15so2811013plb.8 for ; Thu, 02 Feb 2023 10:51:51 -0800 (PST) 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=92s1J/v3u+gUuu9+JAVWjvaQldTTiVNdn4GiJVShZUo=; b=ZqfxJAUsCqlHXcL37UAiEULnvzmklsb5UqQ0hw1beNAz2Y7ROWpbgTK8dMEph7r/4b VLZVrTM8ZV8q+pTcMAw2NO+LDrK9nvlxLYfRsqKrMuFBkNKdbOFEO2caMIu28Kg7KUoz CiScaH2G/0GZDF6v0W3NVWxPajel2AGHRKiiC5l0ioQi112IQir10Qjkq9187jqFsqmt o6aoSViNyprb6p0ciNedLQ47nQvyjvIrE2wkaqJx/o3+L/pXvGluWKjaCukuk6sv0sxA sXnL10vplLObrdVtA7nBu/tpRCO425Wboe6UEXvkcSjrhOxaKyc/g3fW49Qh7LSq0yev nF6Q== 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=92s1J/v3u+gUuu9+JAVWjvaQldTTiVNdn4GiJVShZUo=; b=1rJUzp13+M9SPh8kkFWO/RdKHsO7maPwSbtZeFwUckbhqPlKF0Cw0tFf13K1S5jiGI Yif18JvPIYLxz7F9owt4wCi+noQC0yvBM6SZNYhQMK80PmE7JHUmwZbiRJwzyagCUFwn ELOOHeO+oexFur82rNncrQSIaeYqPIaN1I1YJ0tQbhm3GS71sfipzb/j6ip3S86H4+tf 9NLdDJZfkLy21atIP915HdYdfyAa7i+4C7lENAU0r9PuVDaXagcBlKdhiTU4c/l9NDkl uMEYfMTr5FD43I2UE0kD2JvUp09ipSUnv9mTUR3BNAvTwIVtlEUO3vMHTAJ0fvZI8dfp HHGw== X-Gm-Message-State: AO0yUKUlvc10ycypt9hWNKI/l1DVAYUw+TtweTyQ0qJ1lMAgWLw0WRAm fKX8PAFBffk2IZWkRJc6D6Q0Qw== X-Google-Smtp-Source: AK7set+HAtahAeEjYFdnIkDZh6suSe/pkdbewp9U1iXACabYX5zcuU+L6p/E1XQBosWsbCj4DtjMdw== X-Received: by 2002:a17:902:9a47:b0:198:af4f:de0a with SMTP id x7-20020a1709029a4700b00198af4fde0amr1151plv.10.1675363911344; Thu, 02 Feb 2023 10:51:51 -0800 (PST) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id s11-20020a056a00178b00b0059392f591b0sm17990pfg.53.2023.02.02.10.51.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Feb 2023 10:51:50 -0800 (PST) Date: Thu, 2 Feb 2023 18:51:47 +0000 From: Sean Christopherson To: Vipin Sharma Cc: pbonzini@redhat.com, vkuznets@redhat.com, dmatlack@google.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Marc Zyngier , James Morse , m Suzuki K Poulose , Oliver Upton , Zenghui Yu , Anup Patel , Atish Patra , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , David Hildenbrand Subject: Re: [Patch v4 12/13] KVM: selftests: Make vCPU exit reason test assertion common. Message-ID: References: <20221212183720.4062037-1-vipinsh@google.com> <20221212183720.4062037-13-vipinsh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 02, 2023, Vipin Sharma wrote: > On Wed, Feb 1, 2023 at 3:24 PM Sean Christopherson wrote: > > I love the cleanup, but in the future, please don't squeeze KVM-wide changes in > > the middle of an otherwise arch-specific series unless it's absolutely necessary. > > I get why you added the macro before copy-pasting more code into a new test, but > > the unfortunate side effect is that complicates grabbing the entire series. > > > > Make sense. So what is preferable: > 1. Make the big cleanup identified during a series as the last patches > in that series? > 2. Have two series and big cleanups rebased on top of the initial series? > > Or, both 1 & 2 are acceptable depending on the cleanup? 3. Post the cleanup independently, but make a note so that maintainers know that there may be conflicts and/or missed cleanup opportunities. #1 is rarely going to be the best option. The big cleanup is going to necessitate Cc'ing a lot of people that don't care about the base arch-specific changes, so unless the base changes are one or two trivial patches, a lot of people end up having to wade through a lot of noise. And aside from annoying people, that also makes it more likely that someone will overlook the cleanup. As for #2 vs. #3, #3 is probably a better option in most cases. For broad cleanups, odds are very good that there will be other conflicts beyond just the changes _you_ have in-flight. E.g. in this case, any new tests and/or asserts that are in-flight, sitting in other trees, etc., will suffer the same fate. I.e. whoever applies the cleanup is going to need to resolve conflicts and/or look for other cleanup opportunities anyways. For a scenario like this, a way to make life easy for the maintainer applying the cleanup would be to provide a script, e.g. single grep command, to look for potential cleanup spots. That communicates to the maintainer that there may be silent "conflicts" and makes it easier for them to resolve such conflicts. Posting the cleanup separately means the two series/patches can proceed independently, e.g. respinning one doesn't screw up the other, maintainers can take the patches in whatever order they prefer, etc. There are undoubtedly exceptions, e.g. if the resulting conflicts are really nasty, but those should be few and far between.