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 6B9FCC64EC4 for ; Thu, 9 Mar 2023 17:26:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230171AbjCIR0B (ORCPT ); Thu, 9 Mar 2023 12:26:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbjCIRZ6 (ORCPT ); Thu, 9 Mar 2023 12:25:58 -0500 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A942EF34E7 for ; Thu, 9 Mar 2023 09:25:56 -0800 (PST) Received: by mail-pj1-x104a.google.com with SMTP id m9-20020a17090a7f8900b0023769205928so2963592pjl.6 for ; Thu, 09 Mar 2023 09:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1678382756; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=nAzHwxIzKgR5cpPFlKSmTV6wBjCG9GNYIIeb+EiWOEw=; b=pcfEThEU4Vasj7WYR/Waxpaik/NppP6KUs9ppDrOWtyN2K2o4KqOmGK0EDNvaR1PpN /UnLgb4a0okqN8xPoiVdvT3V4a3xQpbxcpQw+hqc3obdWDA1zbjdpsZMinO2+XGf0pnk tx9vE4rRQCJ5voH+cpItfZtOeBNDgs3HFupLFCjAMoI4yqWp5+vfnERiQVRovGhbDJlD OI+CCOqeKsFNSgk9agGxkWOLj6VAn6Cx55qyTcqfd2JJGxyGwRwezuRC/2e6nTnTf9sd 6ToNYA8q0vemzt2KRH+BjeI+gz/XbfE+MvBJgD+F+nwK3UPkZ0AbCSmlQJnwfuNg6ozs ZadA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678382756; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nAzHwxIzKgR5cpPFlKSmTV6wBjCG9GNYIIeb+EiWOEw=; b=l1uc9bAzIW5Sv1cgStKFsA/AkNVBNHPM/1oYGTUy7l+mAR30mQFgjmIWiHnJnnHn7l AI6/2g27cI6ELaMrKsXhFZ8lEsgstb6UYDfqhQKvkaCnUmx2S7gFTHPJTYdyhHdedJIS J3J23Nyj8nrxSzav8EwZwd7rXNSDAaov3t9xvTexEelkm4xBF2CR6dzLec431NjltgfL KjFo8S0QCQnaY94a1YegCQBghBF7JHmDtwGzbzFddLfg0aIE6yKE304oeTMIEJ4I+4fT bL2Fb8MPARR7Mev1TXNECr8q85spvVdoVCIS/4sRV4QxtgWohm4JT5aXHSdDHIQ8nhJ9 Ze5g== X-Gm-Message-State: AO0yUKXqY8C60LfgHFCh/NVEHFmPB2i8Y/4LIWqLhe8PWeAB54/Jk0rp U+meATW7V7OOMbUZpavt/LYfJrVf1GU= X-Google-Smtp-Source: AK7set/wzMVIYZAs4ttZZ0eOPrOq++LXdebZdExp7oCzxxYkXloK+akjBCXw06ZtDEXNHa6PBgMRsLH3hjo= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:903:4293:b0:199:ab4:e140 with SMTP id ju19-20020a170903429300b001990ab4e140mr8601038plb.6.1678382756129; Thu, 09 Mar 2023 09:25:56 -0800 (PST) Date: Thu, 9 Mar 2023 09:25:54 -0800 In-Reply-To: Mime-Version: 1.0 References: <20230309010336.519123-1-seanjc@google.com> <20230309010336.519123-3-seanjc@google.com> Message-ID: Subject: Re: [PATCH v2 2/2] Documentation/process: Add a maintainer handbook for KVM x86 From: Sean Christopherson To: Oliver Upton 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 Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > It'd be easier to just have multi-arch series use a stable base (i.e. a > release candidate) by default. That'd avoid the undesirable case where merging > a shared branch brings with it some random point in another arch's /next > history. You're conflating the base of the patch series with the branch it is applied to. I'm most definitely not proposing that multi-arch series from x86 contributors always be routed through kvm-x86. It's ultimately the responsibility of the maintainers, not the contributors, to avoid funky merges and histories. If a series warrants a dedicated topic branch, then we need to create said topic branch off a stable, common base, irrespective of what the contributor based their patches on. If a series from an x86 contributor applies cleanly on kvm-x86/next but not on -rc2 (or whatever), then the reverse would also likely be true (if the contributor used -rc2 as the base). In other words, for series with non-trivial modifications to other architectures and/or common KVM code, IMO the base used for the _initial_ posting doesn't matter all that much for us maintainers since such series will likely require additional attention no matter what base is used. On the flip side, the vast majority of "multi-arch" series in KVM tend to be focused on a single architecture, with only incidental contact to other architectures and/or common KVM code. Those types of series will likely be routed through their "target" arch tree, and so for x86, using kvm-x86/next as the base is preferrable. My goal with suggesting/prescribing kvm-x86/next to contributors is to make the easy things easy. On my end, that means having _predictable_ submissions and minimizing the number of avoidable conflicts. For contributors, that means having a very simple rule/guideline. "Use kvm-x86/next unless you know better" satisfies all those conditions. > If a different approach makes sense for a particular series then we can > discuss it on the list and arrive at something agreeable for all parties > involved. > > > 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.