Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1973014rwl; Thu, 6 Apr 2023 04:12:32 -0700 (PDT) X-Google-Smtp-Source: AKy350Z0XqaW3Q+hy3XMwEqhBc6k5TxQIDckb0ZT5GDndWt3IGGZ33BbzMVEl3vudYuPAEgmVgiV X-Received: by 2002:a17:906:5942:b0:946:a1c8:e000 with SMTP id g2-20020a170906594200b00946a1c8e000mr5639517ejr.44.1680779552047; Thu, 06 Apr 2023 04:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680779552; cv=none; d=google.com; s=arc-20160816; b=G79hb/XgVLJpD5u6IWfDBV0iDlZ4M5p6EbBeN+hbQmx2SmH9GFz00trXb05u3PS8U2 hArMpLOc+75EU/JIaLl/4ut3elYqr6SIhseXkc1Jcw69GpMeCJkBFjkCxEqNkFfZOHs5 gMuE/DoHWqlIWsCR/9mshogYZ+WQnlCceFacclPRU7F3x/JkzQYLdxEvghCJPKzSo0nA sMduLi0pshFW+PCfMLw2P0T42+1mQ2k3DwLbgo8Jpwt2ypOtEJuYpaw0c5H9XPVqZS9c 2IE38dHTslm0uo2CPRqzipSdKYCN932AKpVWkCTms1Q1iDDRhS5jT1pr+wdMzLekrsyN /74g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:content-language:references:cc:to:user-agent:mime-version:date :message-id; bh=KITffEh21kVUliy1VoMjvw87Ra13t1dF1yglnrdIiXg=; b=XjSbC2Ogu9o0swsbz7tKIUxcDDdQcqFUeeu3ce14J4ThRGwFDRRepM8T6f0Sk6AIIi VwWw7kQ1QXnRp6n9BSLlm0DNd7f7J/00cUHzV2aCp6s/wdsJhTWywskXNVDQxPv7ZP97 LEmqvWWHcgYf1nZ3eEXFCkY/4AZu4fg33izsnrCkGHYZypGE9v1ovj+xEU55KmwDOYDf lvrrRWGZYiUUnpiqr4YGKIFnotbK8ybbsBXbKjzANLp5+DxoDl6l8hsqBtVZvpRuVBOe nzfvBo7sIvFaARv1vouzGlernJ/kaD/BhDLuWVEV6SC8TTCoHWc3FhaomnCpZXA0xTqd PhvA== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v3-20020a1709061dc300b00931b174e776si868946ejh.705.2023.04.06.04.12.06; Thu, 06 Apr 2023 04:12:32 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236270AbjDFLEp (ORCPT + 99 others); Thu, 6 Apr 2023 07:04:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236569AbjDFLEn (ORCPT ); Thu, 6 Apr 2023 07:04:43 -0400 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89D6A8A7D; Thu, 6 Apr 2023 04:04:23 -0700 (PDT) Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-946a769ae5cso101055066b.1; Thu, 06 Apr 2023 04:04:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680779062; x=1683371062; h=content-transfer-encoding:in-reply-to:subject:from:content-language :references:cc:to:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KITffEh21kVUliy1VoMjvw87Ra13t1dF1yglnrdIiXg=; b=usylqcl/wK/WcBMCB9Hu/nARTEaCavpn8np7neoYl7ECcd2EtGYteDhzELH2v9HJdP V3I2ZjeSUTpSM4HERKvvKyFhczrc+FgRxhfZXxpvPSQk4Yhln+TLijlhXraBs72Ykg6f i7+21elxMtSS/J8WejMVs4oIhQ4PlxquPYUdhsTlXP69CLHvNPh5jmYKjTQSp0sLXLIk VRj+rF+IGLVr3Q6eLbvFeGUl4OMUDsB5lCEXfAlZiFfhIykixbDWahp8GhdGaCMP5JNA Tjrv+xiZRUdm5mUyjWfbuX7Br+eh53wz5xgwBQvcHT4NcF4afCmIWVP4pJryGxPCMkPq gg8Q== X-Gm-Message-State: AAQBX9fQ6AXFIes6LE7BHc+miCJBUGyUASVOZ8h/dg8U+sp51LaiA/LK jZvco0tkeGx7tkfmdUGEYfk= X-Received: by 2002:aa7:de8e:0:b0:4fb:395a:6aa4 with SMTP id j14-20020aa7de8e000000b004fb395a6aa4mr4899183edv.31.1680779061830; Thu, 06 Apr 2023 04:04:21 -0700 (PDT) Received: from [192.168.1.49] (185-219-167-24-static.vivo.cz. [185.219.167.24]) by smtp.gmail.com with ESMTPSA id 23-20020a508e17000000b00501dac14d7asm617927edw.3.2023.04.06.04.04.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 04:04:21 -0700 (PDT) Message-ID: Date: Thu, 6 Apr 2023 13:04:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 To: Peter Zijlstra Cc: Paolo Bonzini , Lai Jiangshan , Dave Hansen , linux-kernel@vger.kernel.org, Lai Jiangshan , "H. Peter Anvin" , Andi Kleen , Andrew Cooper , Andy Lutomirski , Asit Mallick , Cfir Cohen , Dan Williams , David Kaplan , David Rientjes , Erdem Aktas , Jan Kiszka , Joerg Roedel , Juergen Gross , Kees Cook , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Linus Torvalds , Mike Stunes , Raj Ashok , Sean Christopherson , Thomas Gleixner , Tom Lendacky , Tony Luck , kvm@vger.kernel.org, linux-coco@lists.linux.dev, x86@kernel.org References: <20230403140605.540512-1-jiangshanlai@gmail.com> <19035c40-e756-6efd-1c02-b09109fb44c1@intel.com> <3591487f-96ae-3ab7-6ce7-e524a070c9e7@redhat.com> <20230406101254.GI386572@hirez.programming.kicks-ass.net> <26be2c81-9431-6b43-e3e9-52d7d184750e@kernel.org> <20230406104750.GA392176@hirez.programming.kicks-ass.net> Content-Language: en-US From: Jiri Slaby Subject: Re: [RFC PATCH 0/7] x86/entry: Atomic statck switching for IST In-Reply-To: <20230406104750.GA392176@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 06. 04. 23, 12:47, Peter Zijlstra wrote: > On Thu, Apr 06, 2023 at 12:35:24PM +0200, Jiri Slaby wrote: >> On 06. 04. 23, 12:12, Peter Zijlstra wrote: >>> On Tue, Apr 04, 2023 at 07:03:45PM +0200, Paolo Bonzini wrote: >>>> On 4/4/23 05:17, Lai Jiangshan wrote: >>>>> The cover letter has 800+ lines of comments. About 100-300 lines >>>>> of comments will be moved into the code which would make the diffstat >>>>> not so appealing. >>>> >>>> Removing assembly from arch/x86/entry/ and adding English to Documentation/? >>>> That's _even more_ appealing. :) >>> >>> I *much* prefer in-code comments to random gibberish that's instantly >>> out of date squirreled away somewhere in an unreadable format in >>> Documentation/ >> >> +1 as one can link comments in the code to Documentation easily nowadays. >> They are sourced and end up in the generated Documentation [1] then. One >> only needs to type the kernel-doc properly. > > Urgh, so that kernel doc stuff can defeat its purpose too. Some of that > is so heavily formatted it is unreadable gibberish just like > Documentation/ :/ Definitely it _can_ defeat the purpose and be heavily formatted.But it doesn't have to. It's like programming in perl. What I had in mind was e.g. "DOC: TTY Struct Flags": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/tty.h#n261 Resulting in: https://www.kernel.org/doc/html/latest/driver-api/tty/tty_struct.html#tty-struct-flags Both the source and the result are quite readable, IMO. And the markup in the source is not mandatory, it's only for emphasizing and hyperlinks. As I wrote, you can link the comment in the code. But definitely you don't have to, if you don't want. I like the linking in Documentation as I can put the pieces from various sources/headers together to one place and build a bigger picture. > I really detest that whole RST thing, and my solution is to explicitly > not write kerneldoc, that way the doc generation stuff doesn't complain > and I don't get random drive by patches wrecking the perfectly readable > comment. Sure. Rst _sources_ are not readable, IMO. Only generated man pages or html are. thanks, -- js