Received: by 10.213.65.68 with SMTP id h4csp663608imn; Fri, 23 Mar 2018 12:54:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELvepHH0IJh+XH45QbzIRlkKsrWm7dOgN2LmufQ7RKAp1aoEPBJQfZo5+isAQEAN1BSdYlM1 X-Received: by 10.98.10.23 with SMTP id s23mr15479040pfi.204.1521834847727; Fri, 23 Mar 2018 12:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521834847; cv=none; d=google.com; s=arc-20160816; b=DFe7Xxy9KzujWAxETeTVFRq8iDWt4Tlv3OrK1iHleRZ0Q90PAO3mag+W8JLUpgXAPc I+NZUrlr4o+wvUvMmNZCtbXYwQY0WuC4Szyy75JxhCfCBptmM0fPss/A1I6ArITVtmux HNnQopd9MXouSVE5FF1xKUPitfmyiE9uw2RTT3Dq5Lik+WKyWCzWnHibVQuo6V9YJgFK NvnX6MGVYZTjuO+HCCzlDH80PYZzzXOwzhn69upcgguEDdVVu5Mab43rbtrP9V9sKtcO 78M8yJOaasp72o2wvFGUDaGwIVh2vSfdz1GWZSBNF7D+oMIkTqzFW1LjS+6DM/yze7bh r50w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=E46/WYiSaEVOQFpIO7w4hKnjY5gVxAmuMjCxYpGHNI0=; b=kvf2+qG83A+gDlQcWujg7IQwHvwF5zvYY9NkYYn13l4Aj2fk7ht6jKcWMDZbtuvNFZ si4NAxvd5m3b7wRN8wqByK/teCDsXk2jXuJLuAy1UA/4cR8idoE5fqJNH2chkN8BagwK pZUNePrPK5PkH4NqtOy2dmlWd8zfGxGkOSGusyWJxMrnSS8eYtkS0zMkH67jNKpQ8KzD e8yMJ98JNiTfOqGQ8T8y7YQLXj4rF8UDLL7Ez/l6C6L82pR1Y5ZsyZihGlGHiaEUoPkj fUxAKr1PkgC39wyTROXFfF6uMamTeT305Hl1q1dik4w0yc//fBmI6PyqLMy15mCeahfO djFw== 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 n128si6373426pga.29.2018.03.23.12.53.53; Fri, 23 Mar 2018 12:54:07 -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 S1752480AbeCWTw7 (ORCPT + 99 others); Fri, 23 Mar 2018 15:52:59 -0400 Received: from terminus.zytor.com ([198.137.202.136]:43733 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751883AbeCWTw6 (ORCPT ); Fri, 23 Mar 2018 15:52:58 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w2NJqVv9019964; Fri, 23 Mar 2018 12:52:31 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w2NJqUPg019961; Fri, 23 Mar 2018 12:52:30 -0700 Date: Fri, 23 Mar 2018 12:52:30 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Christoph Hellwig Message-ID: Cc: mulix@mulix.org, joro@8bytes.org, tglx@linutronix.de, hpa@zytor.com, peterz@infradead.org, konrad.wilk@oracle.com, hch@lst.de, thomas.lendacky@amd.com, dwmw2@infradead.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, jdmason@kudzu.us, mingo@kernel.org Reply-To: mulix@mulix.org, tglx@linutronix.de, joro@8bytes.org, hpa@zytor.com, peterz@infradead.org, hch@lst.de, konrad.wilk@oracle.com, thomas.lendacky@amd.com, dwmw2@infradead.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, jdmason@kudzu.us, mingo@kernel.org In-Reply-To: <20180319103826.12853-11-hch@lst.de> References: <20180319103826.12853-11-hch@lst.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/dma] set_memory.h: Provide set_memory_{en,de}crypted() stubs Git-Commit-ID: b7fa07460b0f0e9fbe6d9319a0864c145bd59bcb X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: b7fa07460b0f0e9fbe6d9319a0864c145bd59bcb Gitweb: https://git.kernel.org/tip/b7fa07460b0f0e9fbe6d9319a0864c145bd59bcb Author: Christoph Hellwig AuthorDate: Mon, 19 Mar 2018 11:38:22 +0100 Committer: Ingo Molnar CommitDate: Tue, 20 Mar 2018 10:01:58 +0100 set_memory.h: Provide set_memory_{en,de}crypted() stubs ... to make these APIs more universally available. Tested-by: Tom Lendacky Signed-off-by: Christoph Hellwig Reviewed-by: Thomas Gleixner Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Tom Lendacky Cc: David Woodhouse Cc: Joerg Roedel Cc: Jon Mason Cc: Linus Torvalds Cc: Muli Ben-Yehuda Cc: Peter Zijlstra Cc: iommu@lists.linux-foundation.org Link: http://lkml.kernel.org/r/20180319103826.12853-11-hch@lst.de Signed-off-by: Ingo Molnar --- include/linux/set_memory.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/linux/set_memory.h b/include/linux/set_memory.h index e5140648f638..da5178216da5 100644 --- a/include/linux/set_memory.h +++ b/include/linux/set_memory.h @@ -17,4 +17,16 @@ static inline int set_memory_x(unsigned long addr, int numpages) { return 0; } static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } #endif +#ifndef CONFIG_ARCH_HAS_MEM_ENCRYPT +static inline int set_memory_encrypted(unsigned long addr, int numpages) +{ + return 0; +} + +static inline int set_memory_decrypted(unsigned long addr, int numpages) +{ + return 0; +} +#endif /* CONFIG_ARCH_HAS_MEM_ENCRYPT */ + #endif /* _LINUX_SET_MEMORY_H_ */