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 4EC82C74A4B for ; Mon, 13 Mar 2023 18:40:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230289AbjCMSkw (ORCPT ); Mon, 13 Mar 2023 14:40:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229820AbjCMSku (ORCPT ); Mon, 13 Mar 2023 14:40:50 -0400 Received: from out-10.mta0.migadu.com (out-10.mta0.migadu.com [IPv6:2001:41d0:1004:224b::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB35D93EC for ; Mon, 13 Mar 2023 11:40:18 -0700 (PDT) Date: Mon, 13 Mar 2023 11:38:58 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1678732754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2IOpydyYpZ00bNASBI6Lt0s4hb0qO64jhUR+NW29SJk=; b=EB1X8tRCl+FfauVWnZvQlYAVpcjSiJI7ngdVJQfQ73ShqgD327ZnyyXcKIBsM7qC9twWry x92x77y3VLYO7Oowhn8yOY+LcceCwqyuLKOI/2FJeeoUewBgp7u9jBJoFjc8oxY/pnxMPR 7wLlF34yBFEzkZPd0tH7EMiCVwLgkIA= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Sean Christopherson Cc: Bagas Sanjaya , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Sagi Shahar , Erdem Aktas , Peter Shier , Anish Ghulati , James Houghton , Anish Moorthy , Ben Gardon , David Matlack , Ricardo Koller , Axel Rasmussen , Aaron Lewis , Ashish Kalra , Babu Moger , Chao Gao , Chao Peng , Chenyi Qiang , David Woodhouse , Emanuele Giuseppe Esposito , Gavin Shan , Guang Zeng , Hou Wenlong , Jiaxi Chen , Jim Mattson , Jing Liu , Junaid Shahid , Kai Huang , Leonardo Bras , Like Xu , Li RongQing , "Maciej S . Szmigiero" , Maxim Levitsky , Michael Roth , Michal Luczaj , Mingwei Zhang , Nikunj A Dadhania , Paul Durrant , Peng Hao , Peter Gonda , Peter Xu , Robert Hoo , Suravee Suthikulpanit , Tom Lendacky , Vipin Sharma , Vitaly Kuznetsov , Wanpeng Li , Wei Wang , Xiaoyao Li , Yu Zhang , Zhenzhong Duan , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] Documentation/process: Add a maintainer handbook for KVM x86 Message-ID: References: <20230309010336.519123-1-seanjc@google.com> <20230309010336.519123-3-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 13, 2023 at 11:20:45AM -0700, Sean Christopherson wrote: > On Mon, Mar 13, 2023, Oliver Upton wrote: > > On Thu, Mar 09, 2023 at 09:25:54AM -0800, Sean Christopherson wrote: > > > On Thu, Mar 09, 2023, Oliver Upton wrote: > > > > On Thu, Mar 09, 2023 at 09:37:45AM +0700, Bagas Sanjaya wrote: > > > > > On Wed, Mar 08, 2023 at 05:03:36PM -0800, Sean Christopherson wrote: > > > > > > +As a general guideline, use ``kvm-x86/next`` even if a patch/series touches > > > > > > +multiple architectures, i.e. isn't strictly scoped to x86. Using any of the > > > > > > +branches from the main KVM tree is usually a less good option as they likely > > > > > > +won't have many, if any, changes for the next release, i.e. using the main KVM > > > > > > +tree as a base is more likely to yield conflicts. And if there are non-trivial > > > > > > +conflicts with multiple architectures, coordination between maintainers will be > > > > > > +required no matter what base is used. Note, this is far from a hard rule, i.e. > > > > > > +use a different base for multi-arch series if that makes the most sense. > > > > > > > > I don't think this is the best way to coordinate with other architectures. > > > > Regardless of whether you intended this to be prescriptive, I'm worried most > > > > folks will follow along and just base patches on kvm-x86/next anyway. > > > > > > Probably, but for the target audience (KVM x86 contributors), that's likely the > > > least awful base 99% of the time. > > > > Sorry, I follow this reasoning at all. > > > > If folks are aiming to make a multi-arch contribution then the architecture > > they regularly contribute to has absolutely zero relevance on the series > > itself. > > There's disconnect between what my brain is thinking and what I wrote. > > The intent of the "use kvm-x86/next" guideline is aimed to address series that > are almost entirely x86 specific, and only superficially touch common KVM and/or > other architectures. In my experience, the vast, vast majority of "multi-arch" > contributions from x86 fall into this category, i.e. aren't truly multi-arch in > nature. > > If I replace the above paragraph with this, does that address (or at least mitigate > to an acceptable level) your concerns? Inevitably there will still be series that > are wrongly based on kvm-x86, but I am more than happy to do the policing. I > obviously can't guarantee that I will be the first to run afoul of a "bad" series, > but I do think I can be quick enough to avoid shifting the burden to other > maintainers. And if I'm wrong on either front, you get to say "told you so" and > make me submit a patch of shame ;-) > > The only exception to using ``kvm-x86/next`` as the base is if a patch/series > is a multi-arch series, i.e. has non-trivial modifications to common KVM code > and/or has more than superficial changes to other architectures's code. Multi- nit: Maybe 'to another architecture's code', since English is an annoying language :) > arch patch/series should instead be based on a common, stable point in KVM's > history, e.g. the release candidate upon which ``kvm-x86 next`` is based. If > you're unsure whether a patch/series is truly multi-arch, err on the side of > caution and treat it as multi-arch, i.e. use a common base. LGTM, and sorry for whining without getting across the net effect I was hoping for in the language. > > > > > That means patches that primarily kvm ARM changes should be based on > > > > > kvm-x86/next, right? > > > > > > > > No, don't do that. > > > > > > + > > > > > > This doc is specifically for KVM x86. > > > > You've also made some suggestions about cross-arch development that do not fit > > the development model of other architectures. I have no desire to nitpick > > about the x86 process but want the multiarch language to actually set folks up > > for success working outside of the KVM/x86 tree. > > Ah, I see where y'all are coming from. Yeah, I didn't intend for that type of > blanket rule, e.g. my comment about this being specifically for KVM x86 was > intended to clarify that this doc should NOT be used to determine how to handle > non-x86 code. My biggest worry was that whether intentional or not, folks will probably take what you've written out of context. Not as though I could completely blame the developer in that case, as we have no documented process for arm64 at the moment. -- Thanks, Oliver