Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp886298ybg; Thu, 19 Mar 2020 10:27:29 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuhfdgcm4BnGQnWCb4TDkYAPdPWPT5rKmgHmiwRqlBis5tkveI7lfPqiz2YwohGqlyDHE8y X-Received: by 2002:aca:4444:: with SMTP id r65mr3282085oia.76.1584638849069; Thu, 19 Mar 2020 10:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584638849; cv=none; d=google.com; s=arc-20160816; b=B30oEL3wJ4VQ9FjDUbZvHo9W4IleJM2Cax9+CXh/+ODbxGPJfYxragzSG59BCvYZ3H l/HuOlJMngqwcMQ5VG8lLLN5n2f/8g58zxiPkqUC+WDmSrn75/mJAxzMXMRYmVgvrHEg XcKBtnM+a3yrsBQ2EfKM0MxYXp36dgZPTvX6tFKDQA9C7069w7BLBR/K9bpXgNxQsJeR jQJXWSDrRp007ceuJO6MdffatQLOZhbNWBLnGkWYc5BAmQUSOk2r/VgKIMmI49eC1ALM +6cMRlOZ3Wjz+xUo61uMIX0X4srZwlSbhDnmjBOU1Ga5c3aqhcoRhxswzvc0V63dhSYu fYYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=3ZO6q6uH3yVC+eNamQK9xW8VarE4fo4OVQRfNaKGq+4=; b=pFGD4WwA7yQ3IVfKPbBMdeYkA++Fr6JjeWGscF67knxTk8eVjawACwGLCfggeVD3OV zR5GruFgi0ffDfPOPzENqECDx81hHjai9ZbdrIyBPrB9iHVg1+WcSGaDDTzAhx8spWSM LoiN70AVgOAq8BZDhBM2xvqBWSVXmiu0efZGA+4o28wtqn8K/JkFprCtWezWPb6zn9zQ 1bnhSFS8NnJnw5E+r99N84ejy2i3iEzrExm7mMhHStevMEfyHrZ46E9zxj1gsBnWGpdG uiA9wHUoC7r9kwaC09DTtpZj+m70tbes812LtrSr9SBEkhacBaHmapPQY0pXetwEcCEy gqbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v81si1333724oia.114.2020.03.19.10.27.12; Thu, 19 Mar 2020 10:27:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728298AbgCSR0V (ORCPT + 99 others); Thu, 19 Mar 2020 13:26:21 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:33708 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727146AbgCSR0U (ORCPT ); Thu, 19 Mar 2020 13:26:20 -0400 Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jEyvW-0006QR-UH; Thu, 19 Mar 2020 18:25:51 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id E6E1F103088; Thu, 19 Mar 2020 18:25:49 +0100 (CET) From: Thomas Gleixner To: Borislav Petkov , Robin Murphy Cc: Christoph Hellwig , lkml , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Ingo Molnar , x86@kernel.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , Marek Szyprowski , linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, iommu@lists.linux-foundation.org, Tom Lendacky Subject: Re: [PATCH -v2] treewide: Rename "unencrypted" to "decrypted" In-Reply-To: <20200319112054.GD13073@zn.tnic> References: <20200317111822.GA15609@zn.tnic> <20200319101657.GB13073@zn.tnic> <20200319102011.GA3617@lst.de> <20200319102834.GC13073@zn.tnic> <8d6d3b6c-7e4e-7d9e-3e19-38f7d4477c72@arm.com> <20200319112054.GD13073@zn.tnic> Date: Thu, 19 Mar 2020 18:25:49 +0100 Message-ID: <878sjw5k9u.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Borislav Petkov writes: > On Thu, Mar 19, 2020 at 11:06:15AM +0000, Robin Murphy wrote: >> Let me add another vote from a native English speaker that "unencrypted" is >> the appropriate term to imply the *absence* of encryption, whereas >> "decrypted" implies the *reversal* of applied encryption. >> >> Naming things is famously hard, for good reason - names are *important* for >> understanding. Just because a decision was already made one way doesn't mean >> that that decision was necessarily right. Churning one area to be >> consistently inaccurate just because it's less work than churning another >> area to be consistently accurate isn't really the best excuse. > > Well, the reason we chose "decrypted" vs something else is so to be as > different from "encrypted" as possible. If we called it "unencrypted" > you'd have stuff like: > > if (force_dma_unencrypted(dev)) > set_memory_encrypted((unsigned long)cpu_addr, 1 << page_order); TBH, I don't see how if (force_dma_decrypted(dev)) set_memory_encrypted((unsigned long)cpu_addr, 1 << page_order); makes more sense than the above. It's both non-sensical unless there is a big fat comment explaining what this is about. Thanks, tglx