Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp75165ybb; Thu, 19 Mar 2020 16:56:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu3m4gyLCfDaOdQ0Io1n63S5hieKQaNVLGvfm+U3gjmLXMvNEIy6mhe9JeQ0/+dkdSL/vkV X-Received: by 2002:a05:6830:4ab:: with SMTP id l11mr4396639otd.163.1584662192401; Thu, 19 Mar 2020 16:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584662192; cv=none; d=google.com; s=arc-20160816; b=myhNBDxIutlSmlQQj/gL+YEkozx0dVBHn8pDMPKXlIzopsiWbgMD6MTHAfg2vk/neK VPkU32IjAN+HWrnC+s31+3QL5LG1VBY3+msqvd7gVYERrgwbNieG/84hAj/PZ3SpDL0V GxQE7nbomyYcxm33dvHxzfyx4Tb7GxPrlqA5Jb1vLuQKGSWfqMfawQNGoR28gcTIQwNV tGvYOWZvLFrkKYQ7ta/yL8eCGzJ/8vjwXC8UfUISGva1xjvplXP95tuXXpCHMsMHnFRT fqmyIAoRYzuZFPd94HHzelm4uaLV5Ib78rd7WWtPZpPe80d9IkRVe+M11STfTlPQAqzs Z/Lw== 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=OeNyMFtZV8KiYEvt7JiiJzEpbep/ChOExba0Ex5DZTM=; b=mNeuZAyoH5g0Xjm5kOY/yEni1xOC5l0HRcY4URX0Ti0FXzWSvguwt2um9lvYbhF8+O QsxjYyziOqlKigF2EICd2SGLIbxU1ZQOJ71VvDUkvOHwh6anqt9wqYIHLogaR7CN8FAP B7cwMVDNsC/8tPvD9wDW/bmO4ip0mmukbbCX48r2rVNCyMda94x4k1OaByO0E9rNhAEt EQjMvbUNeZ+xfD4+EdrDuOCQ0Tc2U02uUqQZEuqeS9Lm0Y3b+UUEsN95KgSmUv2b8dUr ieKuLU/ipxKbsuyQOoDwr/GgAgb09z5cGl236flVCNCxgOy3SOlzhC3ymnN1u6Y8TjPC itgQ== 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 u199si1830609oif.110.2020.03.19.16.56.10; Thu, 19 Mar 2020 16:56:32 -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 S1727207AbgCSXyg (ORCPT + 99 others); Thu, 19 Mar 2020 19:54:36 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:34287 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726663AbgCSXyg (ORCPT ); Thu, 19 Mar 2020 19:54:36 -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 1jF4z5-0002E7-Dg; Fri, 20 Mar 2020 00:53:56 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 4DD6B100375; Fri, 20 Mar 2020 00:53:49 +0100 (CET) From: Thomas Gleixner To: Borislav Petkov Cc: Robin Murphy , 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: <20200319174254.GE13073@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> <878sjw5k9u.fsf@nanos.tec.linutronix.de> <20200319174254.GE13073@zn.tnic> Date: Fri, 20 Mar 2020 00:53:49 +0100 Message-ID: <87pnd752b6.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 06:25:49PM +0100, Thomas Gleixner wrote: >> 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 > > 9087c37584fb ("dma-direct: Force unencrypted DMA under SME for certain DMA masks") Reading the changelog again... I have to say that force_dma_unencrypted() makes way more sense in that context than force_dma_decrypted(). It still wants a comment. Linguistical semantics and correctness matters a lot. Consistency is required as well, but not for the price of ambiguous wording. Thanks, tglx