Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp300874lqj; Wed, 10 Apr 2024 10:46:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXV9L9ktJYQSmd/6+zQV4/lI+s3yZL9YoikE5nYRQw8x9eLt3j9EMXcQQH7TjQAiYfimGKVF4ethemqgNXH34BkIxTGleH93pp7Ur44HQ== X-Google-Smtp-Source: AGHT+IEhGIebH5UjW6mlzJknzLkeJHTsyGejIE4/64avuwUrHw5CIRpcR3IhvW+VR+23C2ZDJCZl X-Received: by 2002:a17:90b:811:b0:2a5:bf83:8db8 with SMTP id bk17-20020a17090b081100b002a5bf838db8mr2654964pjb.4.1712771180404; Wed, 10 Apr 2024 10:46:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712771180; cv=pass; d=google.com; s=arc-20160816; b=uEusQOMEegjtONMCa1EJvdTEyLyiYy14MHiR8Hgm54mu7txXuLXcGuabCjomXex2q8 bIzt+xady0cSpchUFUlBMMWE5wpxj2nMmAf4KeRfhJoR9tjUnxQ5BLDVnEtyM2j7lO5D VbtRjQlapKgiOSfGv5gJN9IyVW5/X58MriXrC8nig+lak9b4EMfpboyixkkopPD5WGiA HBcV2B3fOVmaLpZ7U2SIq9JiSJLalk5bAiIbvU+GQTwaZEN0jZC1oB2rqhVVtmlGyrjB +xYp4Yavxow9votXato3j2KsUuusO7xM2Ri+pQKyUsMM3pY5cQK0ipnC+xjojssVpsZY oLUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=lnjnE8ATros47CvItPMr0cyRhNnNvF8qFBKBUXO4nZg=; fh=/+DMdVpO69H63FAVVosv3L0a7AglEw8Y/jASudU0rRY=; b=c3VbMiHf1Qpj05ldHxYzE5oNFDeCI1XWvGqnstzSxZTN+Vn6s4stKKYDzhPaFoToC3 riXvCbmZU1lIatUN8bfaXz8YaGeVwtWerWEZoO+uPpr1W0rgg30/P6TezXdZ0mwZPTu+ v/+iuxhq34/iBrKr4N9sEHXCvG+hXNEU511onkUl4cj2J65SsSD1s6B3vLBy0kQgJJ/R nJQvrboYRizjTDCup4oUliPLOJWTGBIcMWSqrSG6JLP8RuZcyapTTWqXWuUJ1xrx6GGe JRFJGdPjmyGTGOnOg+F3GBWX3f4tfECoS+gVWLP6nRWNbazPTkJJ6UD+tjKR9cJ6Vt49 bLtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=AvdRggsv; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-139121-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fw6-20020a17090b128600b002a2b83417cbsi1938710pjb.110.2024.04.10.10.46.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139121-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=AvdRggsv; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-139121-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2887E283456 for ; Wed, 10 Apr 2024 17:45:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 676CB180A77; Wed, 10 Apr 2024 17:45:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="AvdRggsv" Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E7AF17F372; Wed, 10 Apr 2024 17:44:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712771099; cv=none; b=c1LLnNXL0LpNwv0xzfLjz6jTzr/s9B5dUvi1pVx/O6LyeXfypKOpztXgpR0S1B+8i5hkTOqGigbhEm84nJiT9gD7omniOtq7cfMXqryl5gI8XpriimcEAy7tRiqqLeQgUWYVDk62ZVPHxKa9i5AVQz/LGBuyI4dRT3wg/qo2Rlo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712771099; c=relaxed/simple; bh=zd72EbgmhFsdvxrkydv/54uHUjTmye/iH4W+WqdNsUE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=R6ZHA683a57UdRuopwier3g978ep3bG4ARz8F8u1LnXAq7+C7/4SmpBwtitMo0FuCEADLWR3ci4wqDGdv9rnmVFK8hkeD78XTZs7hLYKUcL3XcHrw1nzsdgXPwddb13ULODIGdnVM5UsH5yJLgryo8HrSykKJjHXp4y8ncgxq+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=AvdRggsv; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43AHWfCE027558; Wed, 10 Apr 2024 17:44:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=pp1; bh=lnjnE8ATros47CvItPMr0cyRhNnNvF8qFBKBUXO4nZg=; b=AvdRggsvVtfgVMcGf1LWwC2cpuVNYpVhS/VYxYE9Sa3p4sFXBVjl7jzeNO6F073J9Nvo U/omTieaaEzZ9iD3ZCm0neCWSCfXvA0GzxtoIiqcdGK3gHAZLspWVEuHytY3J84MjoQx ayRhg5ymc0FZxffaz06ZSdk85D+tGzbMpnhl3pXD5WzkMUuS61HR3k5zobEiiTXr4mfE aPExz9a/LEYnpzV0AquFSh0M+E6qN0Qzcuh8zIdM9fBKiFEglM8nF8UGdhj9tkRd9+95 UdHJ6D3BsaA9Mo+udUJFIPIVi7kU1CZa9KrIfl8ncgejC8UTn5EWJywBiOQoXslw55Zk ng== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xdy8j00rf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 17:44:42 +0000 Received: from m0353727.ppops.net (m0353727.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 43AHige7011949; Wed, 10 Apr 2024 17:44:42 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xdy8j00ra-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 17:44:41 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 43AH29f6029904; Wed, 10 Apr 2024 17:44:40 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3xbj7me5h5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 17:44:40 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 43AHiZpp50856364 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 10 Apr 2024 17:44:37 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EC8DD20043; Wed, 10 Apr 2024 17:44:34 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B400C20040; Wed, 10 Apr 2024 17:44:34 +0000 (GMT) Received: from p-imbrenda (unknown [9.152.224.66]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 10 Apr 2024 17:44:34 +0000 (GMT) Date: Wed, 10 Apr 2024 19:19:44 +0200 From: Claudio Imbrenda To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, Matthew Wilcox , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Janosch Frank , Gerald Schaefer , Thomas Huth Subject: Re: [PATCH v1 4/5] s390/uv: update PG_arch_1 comment Message-ID: <20240410191944.72c84b2e@p-imbrenda> In-Reply-To: <20240404163642.1125529-5-david@redhat.com> References: <20240404163642.1125529-1-david@redhat.com> <20240404163642.1125529-5-david@redhat.com> Organization: IBM X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 8zhlPPNcuaeSlcywV_RLHDG0nrUNh0XR X-Proofpoint-GUID: 53w3kbTBb5T7QS82YxhvL0E5DyEKQP8o X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-10_04,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 mlxscore=0 adultscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 spamscore=0 phishscore=0 suspectscore=0 mlxlogscore=907 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404100130 On Thu, 4 Apr 2024 18:36:41 +0200 David Hildenbrand wrote: > We removed the usage of PG_arch_1 for page tables in commit > a51324c430db ("s390/cmma: rework no-dat handling"). > > Let's update the comment in UV to reflect that. > > Signed-off-by: David Hildenbrand Reviewed-by: Claudio Imbrenda > --- > arch/s390/kernel/uv.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c > index 9c0113b26735..76fc61333fae 100644 > --- a/arch/s390/kernel/uv.c > +++ b/arch/s390/kernel/uv.c > @@ -471,13 +471,12 @@ int arch_make_page_accessible(struct page *page) > return 0; > > /* > - * PG_arch_1 is used in 3 places: > - * 1. for kernel page tables during early boot > - * 2. for storage keys of huge pages and KVM > - * 3. As an indication that this small folio might be secure. This can > + * PG_arch_1 is used in 2 places: > + * 1. for storage keys of hugetlb folios and KVM > + * 2. As an indication that this small folio might be secure. This can > * overindicate, e.g. we set the bit before calling > * convert_to_secure. > - * As secure pages are never huge, all 3 variants can co-exists. > + * As secure pages are never large folios, both variants can co-exists. > */ > if (!test_bit(PG_arch_1, &folio->flags)) > return 0;