Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6925513rwb; Wed, 10 Aug 2022 03:44:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR4gf4MtFG/V+e81IYyG7rUhir71bWIw+1YChLwmqATa6ZSOw/KP2hBKH6u+lKvj7nHZQICU X-Received: by 2002:aa7:c14e:0:b0:43d:7bad:b53e with SMTP id r14-20020aa7c14e000000b0043d7badb53emr25653754edp.353.1660128244218; Wed, 10 Aug 2022 03:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660128244; cv=none; d=google.com; s=arc-20160816; b=WflGBjZGCECInqJxWMAbr+ETB8k8NR/wNBnse6giR7mmOaZkWvfrhLInNLzCfCh9xj TUVyYMbKaLLpCjz7GPuvpS6DwsL5wRzCsHqj77bjA1iOc//82hCDoOb1d+NgBMEeO91I mCcmURUOrxtRhMzWH1Xr5adFmtj4tjAdine+GTBLKJQunUhmMoO1g0HkuLjZKunubl8d IiLKSEjDNr1vCcbwydPOgV83S2xRmk66SiW0tcTEgzeM9R8JRhLFKeuKtp0qRE3+RAwV VpfPG3npuAaGDTDfhR6R2JIL8+pMGfsLkZcFZtmFJ9E/hHNdY0cc8H9ynQN0SllIgbmw fimA== 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=4FPWiU4gGPgYZQ57WyTp515pej7v1tzRkjqKMPPHjxg=; b=k4et1NfqZIbohlwcAnBIun5xchZs1TMq2OB/bVIQtj8WHupGMvOdReaajeTBwqch1M MYTwl6MM7atBpsyB7Rv5EeJfBMcVhqP4yi2kZSgs9uzTCCMCkcH0VV2Uk73IVCA4LFo7 tg5I1y34YpqsLoIZtV7TPFYDmZsaF/6AKJH3p78iI+Ccd9P1NKYBGhxPWkBK6/oYCSob ISDdq9MDQ5lihjQEEURbdPe8KY9R2WdK/LLf7EV5uXiQgWiuXYxKWaPnprb4CowrRS0j AbGKN3PjDSLUrEl2kVhxwLtf4SYOeMAdXYBB4FDT6dNPCQ8Feg5sKKOfJSz1YBtRsRee 60jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=FXRlQtXc; 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 e19-20020a056402191300b0043d1c347df3si13882094edz.152.2022.08.10.03.43.39; Wed, 10 Aug 2022 03:44:04 -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=FXRlQtXc; 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 S229780AbiHJK14 (ORCPT + 99 others); Wed, 10 Aug 2022 06:27:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiHJK1x (ORCPT ); Wed, 10 Aug 2022 06:27:53 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C11C778226; Wed, 10 Aug 2022 03:27:51 -0700 (PDT) Received: from zn.tnic (p200300ea971b9870329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:971b:9870:329c:23ff:fea6:a903]) (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 5A5281EC026E; Wed, 10 Aug 2022 12:27:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1660127266; 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=4FPWiU4gGPgYZQ57WyTp515pej7v1tzRkjqKMPPHjxg=; b=FXRlQtXc+sI27QXqQRS0GG4i0HOpv6C1KzFrYnk7gV43TQ1zf/lG0eSIT+CRAzA9Uwerjm r3xBfk04iDtK/G1z7a/nDjpB60/p54Y0AvS8RgYBJS1pncCcZrW9nlcVcdSne9B7qYDIaK eux2D/zycmUYML3dXdIKvkidqBWLH0w= Date: Wed, 10 Aug 2022 12:27:42 +0200 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: 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 , Mike Rapoport , David Hildenbrand , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.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: [PATCHv7 14/14] x86/tdx: Add unaccepted memory support Message-ID: References: <20220614120231.48165-1-kirill.shutemov@linux.intel.com> <20220614120231.48165-15-kirill.shutemov@linux.intel.com> <20220809114544.q4f7cetqgv2gj5tx@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220809114544.q4f7cetqgv2gj5tx@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, T_SCC_BODY_TEXT_LINE 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 Tue, Aug 09, 2022 at 02:45:44PM +0300, Kirill A. Shutemov wrote: > This code called from EFI stub which runs before decompressor code and > therefore before early_tdx_detect(). Then pls call that function early_is_tdx_guest() and slap a comment above it explaining why it needs to be a separate thing. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette