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 BECFCC64EC7 for ; Tue, 28 Feb 2023 14:46:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbjB1OqC (ORCPT ); Tue, 28 Feb 2023 09:46:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229752AbjB1OqA (ORCPT ); Tue, 28 Feb 2023 09:46:00 -0500 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC15E30194; Tue, 28 Feb 2023 06:45:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677595556; x=1709131556; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=aLzCtKhI01As4ruXBrYfk3b+I8TTpHSQmuOY0vKHQL0=; b=D6XzpNlUj5eamXpcp9LFNThT7XgXbbrTly5/SSvY5UVHdB6ieqI9Two5 PUdCpsMqMlC6xGM6SWxio+O80Pfn8odkEcnPtQBVrwUM/FTcvDp9+GIEk TbTWF1LF5Hpyx7XuOyCYQ1kTxF0WJcESVjKjwlL1sZIZAj1zQf20f5pcn ohKbOmaiKrOY0xguwDlC7e5f5rsJMxD+tExxVzpK10aj8vHxa7M82kO/Z XQ+2XUdcSBZnh/lyktJvnU5MwS3+U0pbwSr43MbsrKSm/X9MaZ0gW88bt 5ww7BPRCLvtZtHjNivArVCHxzjsmIwf/OPuHmPeNnJzalh+I8Iy4ai4Pu g==; X-IronPort-AV: E=McAfee;i="6500,9779,10635"; a="396717295" X-IronPort-AV: E=Sophos;i="5.98,222,1673942400"; d="scan'208";a="396717295" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2023 06:45:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10635"; a="706583429" X-IronPort-AV: E=Sophos;i="5.98,222,1673942400"; d="scan'208";a="706583429" Received: from sqa-gate.sh.intel.com (HELO robert-ivt.tsp.org) ([10.239.48.212]) by orsmga001.jf.intel.com with ESMTP; 28 Feb 2023 06:45:43 -0800 Message-ID: <425d56ca2a2c9eb3a0bd4019706aee6db5dd8fc6.camel@linux.intel.com> Subject: Re: [PATCH 2/2] Documentation/process: Add a maintainer handbook for KVM x86 From: Robert Hoo To: Sean Christopherson , Paolo Bonzini Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Sagi Shahar , Erdem Aktas , Peter Shier , Anish Ghulati , Oliver Upton , 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 , 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 Date: Tue, 28 Feb 2023 22:45:42 +0800 In-Reply-To: <20230217225449.811957-3-seanjc@google.com> References: <20230217225449.811957-1-seanjc@google.com> <20230217225449.811957-3-seanjc@google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-10.el7) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2023-02-17 at 14:54 -0800, Sean Christopherson wrote: > +Branches > +~~~~~~~~ > +The KVM x86 tree is organized into multiple topic branches. The > purpose of > +using finer-grained topic branches is to make it easier to keep tabs > on an area > +of development, and to limit the collateral damage of human errors > and/or buggy > +commits, e.g. dropping the HEAD commit of a topic branch has no > impact on other > +in-flight commits' SHA1 hashes, and having to reject a pull request > due to bugs > +delays only that topic branch. > + > +All topic branches, except for ``next`` and ``fixes`` What's this "fixes" branch for? If fixes for current cycle, will apply to main KVM tree; if fixes for next cycle, why not directly to its topic branch or next branch (kvm- x86 tree)? I see in main KVM tree, its "fixes" branch is very inactive. Too many functional branches will add your maintenance burden. > , are rolled into ``next`` > +via a cthulu merge on an as-needed basis, i.e. when a topic branch > is updated. > +As a result, force pushes to ``next`` are common. > + > +Lifecycle > +~~~~~~~~~ > +Pull requests for the next release cycle are sent to the main KVM > tree, one > +for each KVM x86 topic branch. Will each KVM x86 topic branch has a mapping topic branch in main KVM tree? I mean where is their pull target(s), next branch in main KVM tree? or their counterpart branches in main KVM tree? > If all goes well, the topic branches are rolled > +into the main KVM pull request sent during Linus' merge > window. Pull requests > +for KVM x86 branches are typically made the week before Linus' > opening of the > +merge window, e.g. the week following rc7 for "normal" releases. > + > +The KVM x86 tree doesn't have its own official merge window, but > there's a soft > +close around rc5 for new features, and a soft close around rc6 for > fixes. > + > > +Comments > +~~~~~~~~ > +Write comments using imperative mood and avoid pronouns. Use > comments to > +provide a high level overview of the code, and/or to explain why the > code does > +what it does. Do not reiterate what the code literally does; let > the code > +speak for itself. If the code itself is inscrutable, comments will > not help. Welcome comments that state preconditions for calling this function? e.g. some lock held. > + > +SDM and APM References > +~~~~~~~~~~~~~~~~~~~~~~ > +Much of KVM's code base is directly tied to architectural behavior > defined in > +Intel's Software Development Manual (SDM) and AMD's Architecture > Programmer’s > +Manual (APM). Use of "Intel's SDM" and "AMD's APM", or even just > "SDM" or > +"APM", without additional context is a-ok. > + > +Do not reference specific sections, tables, figures, etc. by number, > especially > +not in comments. Instead, copy-paste the relevant snippet (if > warranted), and > +reference sections/tables/figures by name. The layouts of the SDM > and APM are > +constantly changing, and so the numbers/labels aren't > stable/consistent. Ack