Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2604861rwl; Mon, 27 Mar 2023 02:36:01 -0700 (PDT) X-Google-Smtp-Source: AKy350bmWAhNpOyV2RfHMsYvFI52X0wT0Vcp75sEs/XN7pxABz1DQ9ZfaT1spP0kasddFEU5YdPE X-Received: by 2002:aa7:9797:0:b0:627:ebf3:7a97 with SMTP id o23-20020aa79797000000b00627ebf37a97mr11870792pfp.14.1679909760853; Mon, 27 Mar 2023 02:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679909760; cv=none; d=google.com; s=arc-20160816; b=lN9oLezyCTa52VIdIBzoZhUZwoLbBla5AQZw4bj3lCZZy+BFgtcMv/g8sy44qBH0qn Uwn9tjAfPrbA16P4GQN80g8a5iZv6ty6ywcnzTYLEeX6qdo8wQVGmOq02E3pHIKHe0LO P1LTQOYjIFUjBGU95NnhgyaaVjPgnte/6F+q/+AmJ6K9i8ME72jorhcqO6cstdrYdtai mGvO1TdD1ak0pY4A2nzoeSljiOe0HVdPXGVbY6ydjAhtzqbY7mI79C6PwmEfNS/xi2mj nALEL3I3H7pMvzyU+wXzw3bk1iV+/8lX8+4x9VEcM76194VRqhwrEc+qfrCMHws7F/Fr y3qw== 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=5tLc3N+tXasD65FrBkvNWqUCi2ynBq9lCve99NLg2Mw=; b=Ng2G5rT2HiRDKdZ4jn+3SxkPY262mH6+GeJVvEp8Rg2EXXz0sX/zVYPRTQuJfF1LNy vLboL53wtmqTAe8/Js8aSdoo5NBbHS4PbCyr5KrEDQEmRwO0Uu9vsINOhlwsUALbQUeg dVEn9eLL/zYJqyFnFvZVy6pip/qtG6441KeflKbBh+tcCX0eDGjkvYnHyKVuvZfjTbOc cucDHx/2ixhzKfziqNKQ8PBSJ7djkAgs5reiSDhz0bGlIKImuFGWmxnDfAdzrLh8hfbr 9dqnI17SxhsqWNAp9B/HCikUGDFiiUB7KVx62GzV0nTfBlVsEem61TLlrXRSXCUqqUZQ 53Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=D3uGXRv3; 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 e8-20020a630f08000000b005031231026fsi27710397pgl.543.2023.03.27.02.35.49; Mon, 27 Mar 2023 02:36:00 -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=D3uGXRv3; 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 S233383AbjC0Jf1 (ORCPT + 99 others); Mon, 27 Mar 2023 05:35:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233508AbjC0JfL (ORCPT ); Mon, 27 Mar 2023 05:35:11 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71A8D5246 for ; Mon, 27 Mar 2023 02:35:01 -0700 (PDT) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32R8h5oW025648; Mon, 27 Mar 2023 09:34:47 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=5tLc3N+tXasD65FrBkvNWqUCi2ynBq9lCve99NLg2Mw=; b=D3uGXRv3Sp0Gy/Odsnn8B6dWxQfBLVTPMSzqhMCzdDBwvUG37H6Ovnc3sbnlb7KbeScg LGUG92flAIQ2apotLVC+Sev9siY4C2BBNUkscWzWqUtRoS9tkviqOnTEKgpNd3h+tz2h WDP1tBwDrfWQiiRlTK0WBjG9KBp2jnjCaFrLLQNSNoU7ElbW7ZxDD/WeomF3cxsrjF5X eMB4TdWEjhLtjIGxkDKQDMxa1cLnpdMZ0pA1q+9AUWKkzK3zG21Nffc3mmislE1kwQl7 n8nsyqvEimIJ6h8nJm2894Qz70jM4L6pQPDOJJvyEj28euumsKGcCYU2BQuZ8VAfSWqU LA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pjadkusat-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 09:34:47 +0000 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 32R8tlSY007396; Mon, 27 Mar 2023 09:34:46 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pjadkus9b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 09:34:46 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 32QGk4NH009599; Mon, 27 Mar 2023 09:34:42 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3phrk6jk1v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 09:34:42 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 32R9Ycbm24117974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Mar 2023 09:34:38 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 84EC520043; Mon, 27 Mar 2023 09:34:38 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 840DF20040; Mon, 27 Mar 2023 09:34:35 +0000 (GMT) Received: from li-a450e7cc-27df-11b2-a85c-b5a9ac31e8ef.ibm.com (unknown [9.43.40.181]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTPS; Mon, 27 Mar 2023 09:34:35 +0000 (GMT) Date: Mon, 27 Mar 2023 15:04:31 +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-GUID: p_00OSJ9vfcci-w7O4qYHB6KEjjmwBdS X-Proofpoint-ORIG-GUID: hQmUzdl_m5Vw6UqUFmBcunNjm5nn-NCx 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 phishscore=0 mlxscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 impostorscore=0 priorityscore=1501 mlxlogscore=999 clxscore=1015 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303270078 X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,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 14:58:03, Kautuk Consul wrote: > 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. But using SYM_CODE_START_LOCAL again causes a warning in the build (which we were trying to avoid): arch/powerpc/kvm/book3s_hv_rmhandlers.o: warning: objtool: .text+0x48: unannotated intra-function call > > > > 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