Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6055838rwd; Mon, 5 Jun 2023 12:17:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5uMFHvJsXFl03OVkgacxdhKPYcOWrDWIcQsJotE20f+W/iTOs8/s1SpXZV3Ngx88plCoOC X-Received: by 2002:a05:6a00:1586:b0:644:ad29:fd37 with SMTP id u6-20020a056a00158600b00644ad29fd37mr636763pfk.28.1685992633408; Mon, 05 Jun 2023 12:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685992633; cv=none; d=google.com; s=arc-20160816; b=Be3+kkHVnh499hL+4ZtaredqcdrFZzQZThAjbnb6epZQvoS6ptTHtoc+JnxgcSpI2A aSKcalGU7G4h3D/i/KnFv8/bJNfwfwvRVtC+qPyGtG1KMxJ/uJvzVNjZKc/ODUoz0ilc PpdP6ujgpcDKdc01vHt6SyY+qx5/E24W/X8RHDKEmZ8hjUPAYyqcPV+RovwLFfVcNX8/ PVa84TEApq1dRFsM5vTkxGJN5SMP27UDfGmPrJlOcK81Cym2u0bqzXfpQ+8ZjQC+faf6 EQv7drC2RQhrmysUOFVAEkurZ7AE1RmdRcMjv1eujkE2oXOww8mlA8eGIbwappeDhGQm FRnw== 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=wkzDpd9hOpiwQjw2/Ex7sDYVGxXjX/znZebMG4jB1O8=; b=0cSekNCd6sqcvS0bTnq1mFNCJZjux0QpeMzniF3qrLyeVC1AypNeCjuQeCL+sHYip5 Maaf3cKivv0VYYD/6kWmmyIfqK/1TbDQPWjwBohZ5dBIH+Ytw9H8203Fa8VLR61B3HJo LqxpkP40RniFSEXU/u5thISwH+hzYrxqQoTaFLwgatmIZCAh47OOJ6hIozk/tTdC2xU+ km8iMbX73tikqcT578ucSXds7TIZHBqeZLFuj6ihvw1WmPHhCgoamPDTUWgcO6L9cgCz 0Oq0rIqdN8k202QSzSRKHrwnvIeljqwb6E+Jw6rVjiK0Eb/06K3P8OrErR/dxYyzqV4n Ze1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@alien8.de header.s=dkim header.b=jmTNaxQd; 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=fail (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 a72-20020a63904b000000b00543ec36863asi82590pge.898.2023.06.05.12.17.00; Mon, 05 Jun 2023 12:17:13 -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=temperror (no key for signature) header.i=@alien8.de header.s=dkim header.b=jmTNaxQd; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234995AbjFETMe (ORCPT + 99 others); Mon, 5 Jun 2023 15:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231329AbjFETMd (ORCPT ); Mon, 5 Jun 2023 15:12:33 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81E42A7; Mon, 5 Jun 2023 12:12:31 -0700 (PDT) Received: from zn.tnic (pd9530d32.dip0.t-ipconnect.de [217.83.13.50]) (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 004511EC0103; Mon, 5 Jun 2023 21:12:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1685992350; 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=wkzDpd9hOpiwQjw2/Ex7sDYVGxXjX/znZebMG4jB1O8=; b=jmTNaxQd3htRMqhJ0AjG4Lm+yacQbouvqEexD2tMv02YwWsX/T1O3a9NcGy3rKahA2+BMa SRaM0UvH59yD820PT2DO3g4QppSsBuWmNa3PnKyqXcBa6hCfxOuS8Ftdo3NH1x3+43bQl8 YoCDJ8algs341iPV9EFN4C/wbYgRskw= Date: Mon, 5 Jun 2023 21:12:25 +0200 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: "Kirill A. Shutemov" , Andy Lutomirski , Dave Hansen , 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 , Dario Faggioli , Mike Rapoport , David Hildenbrand , Mel Gorman , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, aarcange@redhat.com, peterx@redhat.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv13 5/9] efi: Add unaccepted memory support Message-ID: <20230605191225.GCZH4zmbtkWWRG4lzf@fat_crate.local> References: <20230601182543.19036-1-kirill.shutemov@linux.intel.com> <20230601182543.19036-6-kirill.shutemov@linux.intel.com> <20230605154333.GLZH4CpV3eXCCWCGxi@fat_crate.local> <20230605173303.k5yt535snxyk4ez3@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230605173303.k5yt535snxyk4ez3@box.shutemov.name> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, Jun 05, 2023 at 08:33:03PM +0300, Kirill A. Shutemov wrote: > There's nothing to warn about. The range (or part of it) is not > represented in the bitmap because it is not unaccepted. Sorry but how am I supposed to know that?! I've read the whole patchset up until now and all text talks like *all* *memory* needs to be accepted and before that has happeend, it is unaccepted. So how about you explain that explicitly somewhere, perhaps in a comment above accept_memory(), that the unaccepted range is not the whole memory but only, well, what is unaccepted and the rest is implicitly accepted? And I went and looked at the final result - we error() if we fail accepting. I guess that's the only action we can do anyway... > Yes, it was discussed before. Here's context: > > https://lore.kernel.org/all/Ynt8vDY78/YeXO99@zn.tnic You should try those before you paste them - it says "Not found" because of the '/' in the Message-ID and it needs to be escaped. This works: https://lore.kernel.org/all/Ynt8vDY78%2FYeXO99@zn.tnic/ Now I remember. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette