Received: by 10.223.185.116 with SMTP id b49csp2860136wrg; Mon, 5 Mar 2018 09:49:33 -0800 (PST) X-Google-Smtp-Source: AG47ELsdmEKHNL63ROk5r9zjkj5EbEIkFN7LQZb8Sfn00SOY6Poij4GKJDfXaQJZPME1n1cbIRQY X-Received: by 2002:a17:902:7889:: with SMTP id q9-v6mr14157701pll.218.1520272173532; Mon, 05 Mar 2018 09:49:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520272173; cv=none; d=google.com; s=arc-20160816; b=RlrT26vc22E1Qb/y+GVP2PuXV+Tudx4fltO0g5Oj1CkXRc4SHcvqlBQPkmdn2rw4vU MF8Qc5E4e98TekTqpfi6cYldTaayZxFHx9Sz5yJYaFwJvFTGNfRrrnsLyWAeTBJz5Nfo IWXi2tAkmTD8YSeSL400IrVRPtc2EtRgeyzQQC9bGopBso1VQ+4uuGqPyfogIfms97zS 0tqpLKGWg+DT3vQhKnC5+odaPtrEM0URdXEpJcYzi3wyfgQvBJeWQHp54uXnpBwYxe17 /SjfeADwMcS69gck49NIlTv8zJggx50fNhQjhdPh2jvDfWC6Uq9IPFZtXiPVVVSsItFL n8vw== 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=MOCxcJjG3XUyrCIu1dCbwu3kSMCYXjMVe8M9jE+sCHA=; b=TH32jv/EHcpRmx9nnYPuoqTtBMMtBIt8l7K14IzWcxEWUN8VeMovseS4tLJQpPDfye yQxdm16UhD39TZmBTHEnjaJnwFwrdO9Y5NGfBn5kwxmCd8/EZWEouIAmUZoIWpkfmGNO WI7MSz6PbCPhmCX1BjmFvOd3XTSiq0+TYpo4OjYLlWzjmSzT+7FVrlOTGAKaT5JVvxl2 8KPpHA6Mpv0xLvwd+4UA0/OwZxjIBfxLag9hOHmjHaqAVVTiwo0PlGa5L2sZi6IWgeNh TlJaLU473/d6be/vXmJRYsH4c69M8VAPPGWmGePAojt8jrBFpi1CgFk9E8s8g/vTs7Xz Yrog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=SDrlkXQl; 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 z7si10515679pfg.278.2018.03.05.09.49.19; Mon, 05 Mar 2018 09:49:33 -0800 (PST) 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=SDrlkXQl; 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 S1752754AbeCERrW (ORCPT + 99 others); Mon, 5 Mar 2018 12:47:22 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:60492 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbeCERrR (ORCPT ); Mon, 5 Mar 2018 12:47:17 -0500 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=MOCxcJjG3XUyrCIu1dCbwu3kSMCYXjMVe8M9jE+sCHA=; b=SDrlkXQlamJKT9lG5zRwbBPi2 6GDNkzKQVYCKPLya53wToYubYEdUdN5VaPjPWoV7FMx97sNxPw22F5/O3PAssRMRKPIDMT/h4kOWi VtCbNzxmGTE/wuVjkjYBhFMi3V8ePJ6PdQZGBXxfhmCacO7zkOPQdG+Xee2aiyl0qJiamPw6XIuTw 2QfU3GCC9oW7bb8ZyUKk2VCUMA+IfW3IyxbyUJrHaGzY7rj/WiF3OJO9Iz9uI31BvMj/LytbCycIb ndweYcEgxWgqxvcDwfVaXHyR9G/pF+1htN2DNxXRwEjVQMmF+YKrLz9K+z1x2cu/4+BN2hsSRUVhm WTrOY1KHA==; Received: from [209.116.154.70] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1esuCW-0002wF-Qf; Mon, 05 Mar 2018 17:47:04 +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/13] set_memory.h: provide set_memory_{en,de}crypted stubs Date: Mon, 5 Mar 2018 09:46:52 -0800 Message-Id: <20180305174655.9878-11-hch@lst.de> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180305174655.9878-1-hch@lst.de> References: <20180305174655.9878-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 --- 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