Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1058907rwb; Wed, 16 Nov 2022 11:21:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf5c4JSyVOvZY/D10M92IU6aRlX7JNSsru2tSBNnjvFC66o81/S0BNXTq9Wu5pkIP5+HECxi X-Received: by 2002:a17:90a:7e89:b0:212:8f7:acf with SMTP id j9-20020a17090a7e8900b0021208f70acfmr5070557pjl.13.1668626516621; Wed, 16 Nov 2022 11:21:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668626516; cv=none; d=google.com; s=arc-20160816; b=RVRfV6FgSt79Gn8WqxO84pRdy+Xb7b4/0Zhl0TAwVjUhBFW897Tf8K4lxLLTCcif+X Bov9yRmyLhEFkz2A5SdEyNkUahH3nqcCdqEeM8JanV/sbfejPNJx0+gCVOJWtbbLQ+XG 06khuFrdWQbnVsnfNRuOxyilS/Ffd2YKs3bfETJEyWH5XXEcLyta+04WugaS2jE1dcs5 Pw9zzXDNd+y1Wg6XvtwFwaArbytobxLsxvUKVkI+F3Rs2uvXNonyrtO4tg2kIirHaFjP F3akUdGt3XO0lbH37gnxXFXm0ATjPpQ3hsAzBpQjgmvNwptNTCReiBBVps+zbbq5C4x1 /2Gg== 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=SOIA0OyfOSiWDvYJqrV7tS8xz75TZx+kpu+CyG3Fa0c=; b=Qz1w6wUYWqUPwrCX/islTft1WCrs+pHLExORkjOPsqX2q3ZaFrqehnPOQEA5taM7e8 TSF7cDirlEHsAwfz9WKeCIIZcFpucIip3stNMO+2spXfG/E6oXN4VHR0ZFs/Jgib88p1 +jgSAnaepIrRy4KSDyAKiGNZY9+1W2uBzdjzlpiawkt2SyCuE0OagQOkFaEk00dypRtR MNCFl+qVWKuB0a+RWRU6jh7FO3Qb6g7lpodrrsb7HF2h4v4QNgw8T9nL0rDkzcdcrbaV uVzMJSu2PGUxxcLMTc6sS8jOMt33weF31HBp/C+y2fNraWVSkg0fuc8uhawkt4gtSSjw 6C/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=VseLmkRx; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 iw12-20020a170903044c00b0017492fb90b0si14638370plb.182.2022.11.16.11.21.40; Wed, 16 Nov 2022 11:21:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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=VseLmkRx; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S233801AbiKPTJN (ORCPT + 99 others); Wed, 16 Nov 2022 14:09:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233120AbiKPTJM (ORCPT ); Wed, 16 Nov 2022 14:09:12 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCBB661742; Wed, 16 Nov 2022 11:09:09 -0800 (PST) Received: from zn.tnic (p200300ea9733e74b329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e74b: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 762D91EC04E2; Wed, 16 Nov 2022 20:09:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1668625748; 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=SOIA0OyfOSiWDvYJqrV7tS8xz75TZx+kpu+CyG3Fa0c=; b=VseLmkRx6Dyu/uNziP09w7yjbWT6xqnOh7Y+3JxTIquYLVJxQODpxlvXiXJLg7hXNPVPWH UHJtL7C0tGRgVum3vkvlGNPLKFhK1Q2GYQT+1tz66BINQM60Dy+WBpJipq5oq1lnaMIKMG fUCf1aAA5e8gzgA8z+D5RgVjdkhCPGw= Date: Wed, 16 Nov 2022 20:09:08 +0100 From: Borislav Petkov To: "Kalra, Ashish" Cc: Vlastimil Babka , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, linux-crypto@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, jroedel@suse.de, thomas.lendacky@amd.com, hpa@zytor.com, ardb@kernel.org, pbonzini@redhat.com, seanjc@google.com, vkuznets@redhat.com, jmattson@google.com, luto@kernel.org, dave.hansen@linux.intel.com, slp@redhat.com, pgonda@google.com, peterz@infradead.org, srinivas.pandruvada@linux.intel.com, rientjes@google.com, dovmurik@linux.ibm.com, tobin@ibm.com, michael.roth@amd.com, kirill@shutemov.name, ak@linux.intel.com, tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com, alpergun@google.com, dgilbert@redhat.com, jarkko@kernel.org, "Kaplan, David" , Naoya Horiguchi , Miaohe Lin , Oscar Salvador Subject: Re: [PATCH Part2 v6 14/49] crypto: ccp: Handle the legacy TMR allocation when SNP is enabled Message-ID: References: <7882353e-2b13-d35a-b462-cef35ee56f51@suse.cz> <5b27a05e-09ad-9139-67b1-77b90731419f@amd.com> <9d9f1afe-c981-4df9-f012-89c4cb783cc3@amd.com> <973c6f79-38ad-aa30-bfec-c2a1c7db5d70@suse.cz> <8692e736-7518-d6d2-ae83-720e42e7a059@amd.com> <41b8c83e-2a1a-1dda-945e-99329ca8e7e9@suse.cz> <711e6027-1b4f-4aed-47a6-305396d05893@amd.com> <834d41e7-44f8-53f9-a1fa-0cdb5aaff30f@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <834d41e7-44f8-53f9-a1fa-0cdb5aaff30f@amd.com> 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-crypto@vger.kernel.org On Wed, Nov 16, 2022 at 12:53:36PM -0600, Kalra, Ashish wrote: > Actually, these host allocated pages would have already been removed from > the kernel direct map, And, as I said above, it would be a lot easier to handle any potential faults resulting from the host touching them by having it raise a *RMP* fault instead of normal *PF* fault where the latter code is a crazy mess. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette