Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2602033rwl; Mon, 27 Mar 2023 02:32:54 -0700 (PDT) X-Google-Smtp-Source: AK7set/rRirKZ4MBdDy0SrKPbqBI2EpH74UHkx6KUtuNrzjBY+s3L49rlmnLcX33wJAby+Hm/9Gl X-Received: by 2002:a05:6a20:78a2:b0:d9:2cef:949a with SMTP id d34-20020a056a2078a200b000d92cef949amr8461761pzg.28.1679909574322; Mon, 27 Mar 2023 02:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679909574; cv=none; d=google.com; s=arc-20160816; b=vTCdYWAkv0pVD4Yu5v+/6fIgnjwc+p+NOsukV48g5Ky5uP94nUletfR+bHnvgalBvt C8CEGFk2j9nnqUbSwrdEy3c2syXdjCoTfzlZ+G+ZDhM/q6ET/t9NwH+mLwexdHjRDC+O LK0HXnCv9BU1ORFFZ9D65Dxz1kHkvBfzVKgiIldZjl06oDG4znfrDhPq8DvxFhH8F9tR THQnVBtvjFcvOMZlPZQYdfCXGPCx+xU0B4mdanr2XNoF4H3zUpOZ8MQyRzhheA4FuM0L ZaGH5ijsatltApMLUsBzWxQcwk3Re1pY/eLh35wh56TTgrBoulmljcPiBlUHBK8+4BBt mnog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mIOMzrtbO81bh405AAG+IQp9JS3OAXNz52bZZdMrqFw=; b=cx6fjZ+1IShrXhMxdRWsvDux7GLHF5MjrD5oWQ5Fv/gQYa/8aDzckK9p27GqNLFXLA OYRCP/93vYLqfbDBEv+arZveqtqebdtd/3huJmjZRkboPAaacsaoAxZ1dkBW/b3VukQV XeGgf/HkqtdrCqfXIw5qg20KEqB76zQsMJP+kItFphTflnFiR9QJD9i/c3tDnUWp06JW 9FUbWDCX5jh2QuoHNe18lhVWbCUL6BqyHkbP0S7NGfds0B30ZRltNnVpdhEIj+2SwhNV WtDEkXuMjMXcqheWANt86+rnvnjEw9UJ69E44vwbH3FEfQIZL6bAZj+8bsWL5ckuHFiE oDZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ULYNhZVL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020a056a0024ce00b00625106cebedsi28221856pfv.187.2023.03.27.02.32.43; Mon, 27 Mar 2023 02:32:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ULYNhZVL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233036AbjC0J2Z (ORCPT + 99 others); Mon, 27 Mar 2023 05:28:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233079AbjC0J2V (ORCPT ); Mon, 27 Mar 2023 05:28:21 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 767AA3C34 for ; Mon, 27 Mar 2023 02:28:20 -0700 (PDT) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32R8APID012481; Mon, 27 Mar 2023 09:28:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=mIOMzrtbO81bh405AAG+IQp9JS3OAXNz52bZZdMrqFw=; b=ULYNhZVL+dod0fvZfdukKDoQrYi0wRB3CdvKkGMs7yiwXnC+CxJbcjwQ5IU/vKDoUlMn 1jNGlbE0/ljMphXeenK5I8qeAlwq944O08jtIn8sJ66CWDxCzIZS46lEc/j0njxCjt9z azwR+TXw7Cr71PriGv9xTnlBTJ0pnBn2FbQ9/olgKrZJqqJP7fvnymuv7yCFUyALvQy8 kXNly3GzP2W6g0C985YfM68hlmGpXNvxw8XyFzLfZWobHrREEVfCvr50DnM+3dHhFFL7 VaEwtjil6N3SP+dt50rOKsbpRkm4pJ9tUDUX5tFLO3AkggPsuHPXEd7ZEYB7Ny2AGb81 kQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pjammb4wh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 09:28:09 +0000 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 32R98n9R007733; Mon, 27 Mar 2023 09:28:08 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pjammb4vq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 09:28:08 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 32QHgLwo019418; Mon, 27 Mar 2023 09:28:06 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma03ams.nl.ibm.com (PPS) with ESMTPS id 3phrk6jk3m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 09:28:06 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 32R9S3kf17433206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Mar 2023 09:28:03 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 056F32004B; Mon, 27 Mar 2023 09:28:03 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CD76C20040; Mon, 27 Mar 2023 09:27:59 +0000 (GMT) Received: from li-a450e7cc-27df-11b2-a85c-b5a9ac31e8ef.ibm.com (unknown [9.43.40.181]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTPS; Mon, 27 Mar 2023 09:27:59 +0000 (GMT) Date: Mon, 27 Mar 2023 14:57:56 +0530 From: Kautuk Consul To: Nicholas Piggin Cc: Michael Ellerman , Christophe Leroy , Fabiano Rosas , Sathvika Vasireddy , Alexey Kardashevskiy , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] arch/powerpc/kvm: kvmppc_hv_entry: remove .global scope Message-ID: References: <20230316051025.1424093-1-kconsul@linux.vnet.ibm.com> <20230316051025.1424093-2-kconsul@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: xRo1iKmR8B5um0qkIcoK2FmrVDEpUPKN X-Proofpoint-GUID: sq7Bz9O-XzxNoYDhRBnsfmCtEQPDlnu5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-24_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=999 impostorscore=0 bulkscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 adultscore=0 priorityscore=1501 phishscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303270074 X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-03-27 19:19:37, Nicholas Piggin wrote: > On Thu Mar 16, 2023 at 3:10 PM AEST, Kautuk Consul wrote: > > kvmppc_hv_entry isn't called from anywhere other than > > book3s_hv_rmhandlers.S itself. Removing .global scope for > > this function and annotating it with SYM_INNER_LABEL. > > > > Signed-off-by: Kautuk Consul > > --- > > arch/powerpc/kvm/book3s_hv_rmhandlers.S | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S b/arch/powerpc/kvm/book3s_hv_rmhandlers.S > > index acf80915f406..b81ba4ee0521 100644 > > --- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S > > +++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S > > @@ -502,8 +502,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S) > > * * > > *****************************************************************************/ > > > > -.global kvmppc_hv_entry > > I think this is okay. > > > -kvmppc_hv_entry: > > +SYM_INNER_LABEL(kvmppc_hv_entry, SYM_L_LOCAL) > > The documentation for SYM_INNER_LABEL says it for labels inside a SYM > function block, is that a problem? This is a function but doesn't have > C calling convention, so asm annotation docs say that it should use > SYM_CODE_START_LOCAL? That is correct. Will create a v4 patch for this and send it. > > BTW. why don't our _GLOBAL() macros use these SYM annotations? I haven't > really looked into them. Not sure. Was mostly just concentrating on the kvmppc_hv_entry code. > > Thanks, > Nick