Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2527615ybi; Thu, 18 Jul 2019 09:46:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8hsiLH9nFMpGKRSzx14CEfv5KEi1SyPj0w9sAvaKqGZYgnQ5851iobw2unGde3KszmYvm X-Received: by 2002:a63:d950:: with SMTP id e16mr50682891pgj.271.1563468362852; Thu, 18 Jul 2019 09:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563468362; cv=none; d=google.com; s=arc-20160816; b=JHaeaARQSkOQGUGlVB+ahIGgNU/d1kH+h2erMHcZ5pS+HlL8P059badIR/QW4xr843 p6h00GZ0Us/FovuuZre4sdRnVphHg2HWpPGVaK/fxahRSglfZa4kyKa43E9/LHJwAuw0 Do8+G+WTn5quCAXu7EL16n4keiwAALCqWVI+AMXLrthoFwamAIUb6JS1Tc0v3rsfQS8Y kpzzG2AvfDQOcRb7GdrpWvbvyXIfvJgzXGPnHAaIUl8n5xtSHsQ38MbgmigHGuX0rSX2 fO2z1w5mEiUViTiuWn6eU5664gLoCWfZGu/HR/BVsUhMt2Qf9bc3nvOOdbWE89N4dqT7 w4kg== 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:in-reply-to :subject:cc:to:from:user-agent:references; bh=4COUpGd9MBbCpgiZT/2Fo4boIxUOCINvr2Yx2awzbYY=; b=0C/RWep0PE43kW1EU+O4KgUGD4u+vpp/fqod4tVBWnd943mXbfgvKy7QbXyntQVDWs clneo0MW6qIfmfXX6R50rf3wh5gTHghnPJX+KChTqFUMFGklLHLM7y0vZ/vyHmOu5/R9 oZ52hEbzd6FlxfrGtHRc+Gf0MJFJRrKU37dZ36iM7OvjTXdKQx2Uiu4Ap2qOSq+M+PLr 4ia7rbwQk64MvTb0+bEySfK3AaF7mPReWR6IAGn+gGYQ8v8G/hPxgBhN2vZnSC9ZGZZD SiWHrdp1dlTtQvhGvRTVSEzg4MxSLJt7j3vn+l1M7/KoOubw+Tf9Ul5WyOrgnvf/NcTg uvLw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci23si24666378pjb.106.2019.07.18.09.45.46; Thu, 18 Jul 2019 09:46:02 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390853AbfGRQny (ORCPT + 99 others); Thu, 18 Jul 2019 12:43:54 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:38242 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388249AbfGRQnx (ORCPT ); Thu, 18 Jul 2019 12:43:53 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6IGgbET049742; Thu, 18 Jul 2019 12:43:32 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ttustsud7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Jul 2019 12:43:31 -0400 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.27/8.16.0.27) with SMTP id x6IGhVX0052246; Thu, 18 Jul 2019 12:43:31 -0400 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ttustsucm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Jul 2019 12:43:31 -0400 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x6IGeMfn002703; Thu, 18 Jul 2019 16:43:30 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma04dal.us.ibm.com with ESMTP id 2trtmrh27j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Jul 2019 16:43:30 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x6IGhSeD59507006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Jul 2019 16:43:28 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6053EBE058; Thu, 18 Jul 2019 16:43:28 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ED650BE053; Thu, 18 Jul 2019 16:43:23 +0000 (GMT) Received: from morokweng.localdomain (unknown [9.85.186.82]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTPS; Thu, 18 Jul 2019 16:43:23 +0000 (GMT) References: <20190718032858.28744-1-bauerman@linux.ibm.com> <20190718032858.28744-7-bauerman@linux.ibm.com> <20190718084456.GE24562@lst.de> <20190718150123.4230a00c.pasic@linux.ibm.com> User-agent: mu4e 1.2.0; emacs 26.2 From: Thiago Jung Bauermann To: Halil Pasic Cc: Christoph Hellwig , 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" , Marek Szyprowski , Robin Murphy , Konrad Rzeszutek Wilk , Alexey Dobriyan , Thomas Lendacky , Mike Anderson , Ram Pai Subject: Re: [PATCH v3 6/6] s390/mm: Remove sev_active() function In-reply-to: <20190718150123.4230a00c.pasic@linux.ibm.com> Date: Thu, 18 Jul 2019 13:43:20 -0300 Message-ID: <87blxr47kn.fsf@morokweng.localdomain> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-18_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907180175 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Halil Pasic writes: > On Thu, 18 Jul 2019 10:44:56 +0200 > Christoph Hellwig wrote: > >> > -/* are we a protected virtualization guest? */ >> > -bool sev_active(void) >> > -{ >> > - return is_prot_virt_guest(); >> > -} >> > - >> > bool force_dma_unencrypted(struct device *dev) >> > { >> > - return sev_active(); >> > + return is_prot_virt_guest(); >> > } >> >> Do we want to keep the comment for force_dma_unencrypted? > > Yes we do. With the comment transferred: > > Reviewed-by: Halil Pasic Thanks for your review. Here is the new version. Should I send a new patch series with this patch and the Reviewed-by on the other ones? -- Thiago Jung Bauermann IBM Linux Technology Center From 1726205c73fb9e29feaa3d8909c5a1b0f2054c04 Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Mon, 15 Jul 2019 20:50:43 -0300 Subject: [PATCH v4] s390/mm: Remove sev_active() function All references to sev_active() were moved to arch/x86 so we don't need to define it for s390 anymore. Signed-off-by: Thiago Jung Bauermann Reviewed-by: Christoph Hellwig Reviewed-by: Halil Pasic --- arch/s390/include/asm/mem_encrypt.h | 1 - arch/s390/mm/init.c | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/s390/include/asm/mem_encrypt.h b/arch/s390/include/asm/mem_encrypt.h index ff813a56bc30..2542cbf7e2d1 100644 --- a/arch/s390/include/asm/mem_encrypt.h +++ b/arch/s390/include/asm/mem_encrypt.h @@ -5,7 +5,6 @@ #ifndef __ASSEMBLY__ static inline bool mem_encrypt_active(void) { return false; } -extern bool sev_active(void); int set_memory_encrypted(unsigned long addr, int numpages); int set_memory_decrypted(unsigned long addr, int numpages); diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index 78c319c5ce48..6c43a1ed1beb 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c @@ -156,14 +156,9 @@ int set_memory_decrypted(unsigned long addr, int numpages) } /* are we a protected virtualization guest? */ -bool sev_active(void) -{ - return is_prot_virt_guest(); -} - bool force_dma_unencrypted(struct device *dev) { - return sev_active(); + return is_prot_virt_guest(); } /* protected virtualization */