Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp946591ybi; Fri, 12 Jul 2019 07:10:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwnBY4iWUlz/mNWSw/LqpHI8heSJe6cxsvtXESMlfPWOO2Zunjpd5yWUbj8oQNJTN1pMwQ X-Received: by 2002:a17:902:100a:: with SMTP id b10mr11529768pla.338.1562940630537; Fri, 12 Jul 2019 07:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562940630; cv=none; d=google.com; s=arc-20160816; b=GxFlxNAQrWeiAz3NaAN7155c1792VzBgrLK7J+FmjYWJjSxqwln7QaLV18lncWu4K2 2QgMKdmSWqi16N9zRDxE3BRy2MXDMElNo9KlJg1BnrdIYvgZGM3qEpig7H4c/JR+kRjR H3PJEeeGjC2J23FkVFMW46nA9f4fL7DtpHGnFmfIh1blGYTraGm2gSGycbIU6KHC1ER5 HxI/UbdxRaG81nJBWTDHtonwuJAG/A6NZnsdwMFp4so+g02YzZ6UJcm5aMyIBYIluL2n +obdjSWgzIedtZtS2D1iZSF87oHUPq1q4YGH1XrcGI26TvemZyFBnKSP7V0mXUyhsT/U NUmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tmjer5Tv5DDHZtiFT2DbNo1iPA3Fx1734j/b2O2KfTw=; b=IDeydaja7NMzoE394ctNdLqXBkGOKDhng2WXz69UfxVvPlbs0kMzxINxTqR9QfXe5p A0sEHc+xfKqVbLlGtN1YTEl0eY727RfnooYHIjgqPvjBjmvcvvN7bJwyFKPbEEMK3fEz EfxvTTuwvK4CVyyDGMNXzLqRPl6VyqJh7J8b4/Hg9RCiGoPwz+LQiK18gPAhxXyp7Hsm LkXk3/cwU3igxpsRx8QZ4oEOUAX3diWBLBo3tVGmIvKXMoQ/guXqoccCxS/JvcEBx+vz oVDXLdVUDY8WUgpzXQTVMevVdi7ulNJoeHctoqw8RaurMu26U3qhcgAfjD3pshQC4Dks 9Xog== 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 80si8689569pgf.5.2019.07.12.07.10.08; Fri, 12 Jul 2019 07:10:30 -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 S1727351AbfGLOIR (ORCPT + 99 others); Fri, 12 Jul 2019 10:08:17 -0400 Received: from verein.lst.de ([213.95.11.211]:38487 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbfGLOIQ (ORCPT ); Fri, 12 Jul 2019 10:08:16 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id DF601227A81; Fri, 12 Jul 2019 16:08:12 +0200 (CEST) Date: Fri, 12 Jul 2019 16:08:12 +0200 From: Christoph Hellwig To: Halil Pasic Cc: Thiago Jung Bauermann , x86@kernel.org, iommu@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Konrad Rzeszutek Wilk , Alexey Dobriyan , Mike Anderson , Ram Pai Subject: Re: [PATCH 3/3] fs/core/vmcore: Move sev_active() reference to x86 arch code Message-ID: <20190712140812.GA29628@lst.de> References: <20190712053631.9814-1-bauerman@linux.ibm.com> <20190712053631.9814-4-bauerman@linux.ibm.com> <20190712150912.3097215e.pasic@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190712150912.3097215e.pasic@linux.ibm.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 12, 2019 at 03:09:12PM +0200, Halil Pasic wrote: > This is the implementation for the guys that don't > have ARCH_HAS_MEM_ENCRYPT. > > Means sev_active() may not be used in such code after this > patch. What about > > static inline bool force_dma_unencrypted(void) > { > return sev_active(); > } > > in kernel/dma/direct.c? FYI, I have this pending in the dma-mapping tree: http://git.infradead.org/users/hch/dma-mapping.git/commitdiff/e67a5ed1f86f4370991c601f2fcad9ebf9e1eebb