Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2877C433F5 for ; Thu, 23 Dec 2021 19:53:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350175AbhLWTx2 (ORCPT ); Thu, 23 Dec 2021 14:53:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350166AbhLWTx1 (ORCPT ); Thu, 23 Dec 2021 14:53:27 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 817F1C061401 for ; Thu, 23 Dec 2021 11:53:27 -0800 (PST) Received: from zn.tnic (dslb-088-067-202-008.088.067.pools.vodafone-ip.de [88.67.202.8]) (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 A667A1EC0518; Thu, 23 Dec 2021 20:53:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1640289201; 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=Y/+zAPj6/ZHJ2T3DaZk3uT/qIKmdx6Muzu1u+dFahr4=; b=SSQ8poYbcMt1FqStrdnPKKdOqn0tcVdkuAeRiC0Ox9t6i2dJzSS7adXXQ2X8BVpLWNVUby D1jbDppW4BDYGsacGnZ4QqzjLmktTGVCoog/J/mR4UD/2V0dZOHPxYMOVomA8p6TM/RmaV OsdqnwHx2ucGu/LqFTlfGX+uczPjVeU= Date: Thu, 23 Dec 2021 20:53:27 +0100 From: Borislav Petkov To: Dave Hansen Cc: "Kirill A. Shutemov" , Tom Lendacky , tglx@linutronix.de, mingo@redhat.com, luto@kernel.org, peterz@infradead.org, sathyanarayanan.kuppuswamy@linux.intel.com, aarcange@redhat.com, ak@linux.intel.com, dan.j.williams@intel.com, david@redhat.com, hpa@zytor.com, jgross@suse.com, jmattson@google.com, joro@8bytes.org, jpoimboe@redhat.com, knsathya@kernel.org, pbonzini@redhat.com, sdeep@vmware.com, seanjc@google.com, tony.luck@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 19/26] x86/tdx: Make pages shared in ioremap() Message-ID: References: <20211214150304.62613-1-kirill.shutemov@linux.intel.com> <20211214150304.62613-20-kirill.shutemov@linux.intel.com> <87c288d6-9bf8-5a94-a628-1e0aaa7de690@amd.com> <20211223171530.v73posbqizb5l3md@black.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 23, 2021 at 11:45:19AM -0800, Dave Hansen wrote: > CC_ATTR_SME_SOMETHING would get set when sme_me_mask is initialized to > something non-zero. That will keep folks from falling into the same > trap that you did in the long term. I guess CC_ATTR_MEM_ENCRYPT which basically says generic memory encryption... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette