Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp559482iob; Thu, 28 Apr 2022 07:57:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiBOK9H04cfoHwX+9NcZc8Bm+SxqXHXRbfdlc4Zb+ovAVpO3Vp5fA/yriBVBT/xqpUPAN+ X-Received: by 2002:ac2:46c3:0:b0:471:f5fc:ac4b with SMTP id p3-20020ac246c3000000b00471f5fcac4bmr19469993lfo.381.1651157825708; Thu, 28 Apr 2022 07:57:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651157825; cv=none; d=google.com; s=arc-20160816; b=UWmZ2cv2G8O7AU+ICK9Kaia5b0j/CBZi99lajkWQZFbjCg2P+/fqt3oNB1iva1UXaU UISHH2zrS9deCFZxGBJauWK3/XqIp+hz+hzluu4i3tzXQs4FPQqY5vXYfqse4OLTHI4R VPJIg9SyImLEYn7YbcKUY3xC6yqUbWYpm9cCrvqKxiFewGuM8sVo7LvjjGSanwwS0a/3 HhORwv/7A6NXkQ0On6R9Y2pht3c/dNO6aVFWTX0t78+l0lDhElo3XmAI/PjUISm1Dq3K 7RKn0CGsJljHv7XLgbqmI2Omhud7TLW93ubDeXX+E0KpAvFkicNB6TTHDOMX2tRvKLJh spzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PgBjqy9vQg0VYpTLuefpsdMFD4lNCA09smFUUhKxkbQ=; b=hqYJl+AqJdXa9pVtJvUXJdv5KMlNhP4rhLAyYzzvW3a54r0YBdrjc821Nz7opBgFik 2C2bHOtaVHUdTlBd/x+xEuJKnsAOuM8G8ayzVvfex5kBAPnsptlFLH1RBB3AAwYdKseG vPfHI7lAstWXorGSbi/7X5h4IW5c0v5LuN+7x0XPfpx1JRxFM2uR3i34ZS1DwbjsitV9 uWIcUDMEPtIZdgxTJ6OvR3roi8XBmyXhZOTJfitACYJFldU9tF/T4J9wpxjOS640OL6n 7EUweaKFErgdlYb+AK9a/FkYmaZzgAdGqi3HBB3OqtoLqg16iYT0TFegPqRjJpaEMgdr MFPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="o+/ay/k8"; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020a05651c150700b0024f0ad46d0esi6469725ljf.481.2022.04.28.07.56.36; Thu, 28 Apr 2022 07:57:05 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b="o+/ay/k8"; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232211AbiD1KMO (ORCPT + 99 others); Thu, 28 Apr 2022 06:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234245AbiD1KLp (ORCPT ); Thu, 28 Apr 2022 06:11:45 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EECA6674C1; Thu, 28 Apr 2022 03:03:06 -0700 (PDT) Received: from zn.tnic (p5de8eeb4.dip0.t-ipconnect.de [93.232.238.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 773C31EC0535; Thu, 28 Apr 2022 12:03:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1651140181; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=PgBjqy9vQg0VYpTLuefpsdMFD4lNCA09smFUUhKxkbQ=; b=o+/ay/k8tOLntCUuq4C/qtmunpu2Bol5mgc9WPOI2hN4GpvuDvxbJiHGAoCS300Qp1E2Rs Ccp05mNGghaGTesy4iqY5q1AmS70B9H0Tf51+vF+MfJFGtjNew/44it8RJ8YmtKkimfogv WTbY1Xg01IY/2tln7cK+ONkKq+PNJ8E= Date: Thu, 28 Apr 2022 12:02:58 +0200 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: "Kirill A. Shutemov" , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , Dave Hansen , Brijesh Singh , Mike Rapoport , David Hildenbrand , x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv5 03/12] efi/x86: Get full memory map in allocate_e820() Message-ID: References: <20220425033934.68551-1-kirill.shutemov@linux.intel.com> <20220425033934.68551-4-kirill.shutemov@linux.intel.com> <20220427234853.6kt67gjrwzrhgvoa@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220427234853.6kt67gjrwzrhgvoa@box.shutemov.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Thu, Apr 28, 2022 at 02:48:53AM +0300, Kirill A. Shutemov wrote: > Right. That's true. But having goto here makes patch 5/12 a bit cleaner. Ok, let's take our time machine and go into the future: This patch is in git, there's no concept of "next patch" anymore - and someone is staring at it for whatever reason. Someone is wondering: why the hell was this done this way? And which is that "next patch"? Someone probably needs to sort them in the application order to figure out which next patch the author is talking about... See what I mean? Also, if this hunk + + if (IS_ENABLED(CONFIG_UNACCEPTED_MEMORY)) + status = allocate_unaccepted_memory(params, nr_desc, map); + is what this is all about, then no, this confusion is not even worth it - please make sure your patches make sense on their own. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette