Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7165630rwb; Tue, 15 Nov 2022 08:28:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xi0OJixVZb1D0Aua01jRrP+PvSLQ/HJZzFBHcnLo0w6Cgc34ac+dPJ4EAVGWIP5RKxQe+ X-Received: by 2002:a65:694f:0:b0:476:ccde:6694 with SMTP id w15-20020a65694f000000b00476ccde6694mr1652890pgq.603.1668529689185; Tue, 15 Nov 2022 08:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668529689; cv=none; d=google.com; s=arc-20160816; b=NURReLRSjsp8TBke5lc5Y/R1knmRGWgzVKVOhjEE085sU5RdL4dz6v/2h5Bff3OKGY MTi80QuudwYxj6lnXMRQcCLpkuO6ojUJswUhrhRyArWwKj9fDPPZxugxd5j/aw5qySe2 FjKCpA7w4y58QYpID8st3HS102ugti54epN/aCsjtzTfg9gGJMgdZ1O+/iEYr/5EysFv B/pNj4P6jPL2GxqcPixXp92VZOQo44hXi/yLXjstcwDDbCJPIeqj3Do7NCrHUC1qeuqK 4mK3hDGaK5k4YyMSuZhkrfETY2Ie0CZXS3GbXjqxKZLTgijRTGSD0XkP/xiuYpi2EJ+e m+vA== 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=rqKIUpJn3nuSltSmzhMF2AZfwfkeGnGGGviR3ix9tLg=; b=ivog0zzauqJXIlgER2jxZq+WQRnPMYnn8Q7h42MtF0O3w0mMuIlXu63oj9GPslCp33 Pqbx+1IivwSFyKx3n2ug3t0px8GXTeqtFk03ewQXdOMypmNyNrucH6s1nOpMC6LWzUzT Xr8ewNMhPAMQ80TDGde3fuj/3zpQuZ43jOPEb9qY/LD5ChXjJfYREx3mUEd7C6BEXzMt H7XSGGLUHtAADJ8NyE152CcLo25AI3qyV4mrAHWguetjaRYk4mayzM9NmlEPqWu4JIrK UOLWlAlRvWOR526bj91T3dV5B6u2Kp0hzMMdxm6QtT7EVCIiOuW6C2D2lonytMQqp/18 i/LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=mejjCFr9; 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 f14-20020a631f0e000000b00476c2f1962esi1528952pgf.400.2022.11.15.08.27.48; Tue, 15 Nov 2022 08:28:09 -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=mejjCFr9; 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 S238656AbiKOQ1Y (ORCPT + 99 others); Tue, 15 Nov 2022 11:27:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238655AbiKOQ1S (ORCPT ); Tue, 15 Nov 2022 11:27:18 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D94228E1C; Tue, 15 Nov 2022 08:27:17 -0800 (PST) Received: from zn.tnic (p200300ea9733e7da329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e7da: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 F0DB91EC02AD; Tue, 15 Nov 2022 17:27:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1668529636; 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=rqKIUpJn3nuSltSmzhMF2AZfwfkeGnGGGviR3ix9tLg=; b=mejjCFr9kN4KR9WGJSUq/Be8o4tEwH/lc5S4fwqi2vbY822ufKa0pQR5vK6vWnDWoXFJEg uw11kiWVcBoHglbEPF8K6WOiFUS2d8AorPN5Nys5XjJuAAy0CRlcecCpx++70Jjg96KZQX V2sGDC+J4ua9VYHLBcwPcohp3KOjn/Y= Date: Tue, 15 Nov 2022 17:27:12 +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: <380c9748-1c86-4763-ea18-b884280a3b60@amd.com> <6511c122-d5cc-3f8d-9651-7c2cd67dc5af@amd.com> <7882353e-2b13-d35a-b462-cef35ee56f51@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 And, as dhansen connected the dots, this should be the exact same protection scenario as UPM: https://lore.kernel.org/all/20221025151344.3784230-1-chao.p.peng@linux.intel.com so you should be able to mark them inaccessible the same way and you won't need any poisoning dance. And Michael has patches so you probably should talk to him... Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette