Received: by 10.213.65.68 with SMTP id h4csp1416285imn; Mon, 19 Mar 2018 03:40:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELuIm/4OnTJ1VmUkrkeNMmHRtSVNPnMEHYIeFSI5MpH1p+n/nMsfOLKQ/f0qDyh2l+KDgW+d X-Received: by 10.99.114.27 with SMTP id n27mr8590349pgc.177.1521456053611; Mon, 19 Mar 2018 03:40:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521456053; cv=none; d=google.com; s=arc-20160816; b=JJc2haOtCFGXoY+5dhdqbs1GQqx80fIJ56t550/aXXQPyotgcWPX6nBnWy1A920bwX 5W8GJ8ks0ZQW/AfAQA3aSWSpLugC0lqrnmtTKzRPbl0GnEw8F5tGnswjuVcGnbU4r6Ze aHqE0dn6cUQFWY7R0p4cdGtehLt9McXgS9izQT2oQQUNinfop4gNBGXaBK/cgq4nPGqv afKbCaUQNF9VbW7RoILWNRK4K+147OyjzeHKXmvI0xyaIavKxeQB/z0dOE3fcDud7Jk1 p2OTEDxq1yk/jYvKpNnbuM9a7DBktwO+JPonvkexBblKRUqC6u1ASnsxYpF6S5LwEgKg Y8zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=LBeRf9BOBDF2Wh2MwywfgS2dpulO5whi9Fj3aCapH+s=; b=qKs+TM83uBnvBiFWFX89m4sUtjZfIWJQge2FZSmva6L5+YIExSh2CvsuUtUMn8yk+P tyJbZ62dw5NR1ChjnE14Fwp+mHPaBR/ddnUML5wvHNePrTHbRkS9CZn4mVlTAOm7iRrf haM7p0p5bVh0VOZiA9rsYxBmO32xf1QIrZ35U85nPHcNLp9XZ7aTR58nHlUMBNRIGQt0 daBm/+7wvC0fr1XblmFOJ0cOnhMvQy6irsfoKuEGhYy59/Hb3fxNoA10VsPB8qZQyRLB bkXWDCmettpISQnwMl3iteseBos5Wn9gWFbUXmQwHiGILvseG6+dnL/3R3gGgRqdkIz8 PORg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=N5B7p8oL; 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 y12-v6si11711598plt.453.2018.03.19.03.40.39; Mon, 19 Mar 2018 03:40:53 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=N5B7p8oL; 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 S932961AbeCSKjV (ORCPT + 99 others); Mon, 19 Mar 2018 06:39:21 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55186 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932837AbeCSKjO (ORCPT ); Mon, 19 Mar 2018 06:39:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=LBeRf9BOBDF2Wh2MwywfgS2dpulO5whi9Fj3aCapH+s=; b=N5B7p8oLpmAyeoqFVxHL+VYBi js4wj7qhP7MpTJirlGNdn44Q5XvHjfVy/3rmTNITlNw5LafAZk79Mx774MnUBXmy/SdHwwekgiFgk V52+2OI0Vc8d1zAF+xwgF6VYBx2ytN+14C6pKJxheBnyBBC9kP7KS7mqtKHOspZnstP3KpdOjXMeU akbpGRGcsKJMgfChsyhYByM97P4jVGiwS/qi9wav5FmGaiDXYXdBfCCxztKI0ku25YWnprAG11RS7 xGhfPYOhVeTPlTt99BsOGBzbE0b2as2qB0e6uU0s4jALvlAlUXbgXs13sOduaEEZeQg2f/TXXzreo rFHwMmXvw==; Received: from 178.114.187.156.wireless.dyn.drei.com ([178.114.187.156] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1exsC3-00060t-Mo; Mon, 19 Mar 2018 10:39:08 +0000 From: Christoph Hellwig To: x86@kernel.org Cc: Konrad Rzeszutek Wilk , Tom Lendacky , David Woodhouse , Muli Ben-Yehuda , Jon Mason , Joerg Roedel , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/14] set_memory.h: provide set_memory_{en,de}crypted stubs Date: Mon, 19 Mar 2018 11:38:22 +0100 Message-Id: <20180319103826.12853-11-hch@lst.de> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180319103826.12853-1-hch@lst.de> References: <20180319103826.12853-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Christoph Hellwig Reviewed-by: Konrad Rzeszutek Wilk --- 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_ */ -- 2.14.2