From patchwork Mon Feb 14 12:56:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Cooper X-Patchwork-Id: 12745533 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47E4BC4167B for ; Mon, 14 Feb 2022 12:57:10 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.271581.466086 (Exim 4.92) (envelope-from ) id 1nJauY-00025A-IJ; Mon, 14 Feb 2022 12:56:58 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 271581.466086; Mon, 14 Feb 2022 12:56:58 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nJauY-00024F-C1; Mon, 14 Feb 2022 12:56:58 +0000 Received: by outflank-mailman (input) for mailman id 271581; Mon, 14 Feb 2022 12:56:57 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nJauW-0001Wb-TF for xen-devel@lists.xenproject.org; Mon, 14 Feb 2022 12:56:57 +0000 Received: from esa5.hc3370-68.iphmx.com (esa5.hc3370-68.iphmx.com [216.71.155.168]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 94ef0e1e-8d95-11ec-b215-9bbe72dcb22c; Mon, 14 Feb 2022 13:56:53 +0100 (CET) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 94ef0e1e-8d95-11ec-b215-9bbe72dcb22c DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1644843414; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KtRbcAVnwSg90xFfImO++msF+yEET8LbZ8bFNj96oow=; b=XnpxBPus1N/rk/ODoaX71cZCNOvJYiSeGfpRmfGirqw3Lvp7yZWxT2P0 KREbQNt9ZKeOccuzybgjQmPsvi/eQmMXEg+8ANT1c9O/4USO7ogfPlXqM JpSo/q8d2QpB2jsEqAgr45kG6uPwM4Wc4QaqbX/9OALVvLcwSG4OAZd2y 0=; Authentication-Results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: dKn9DAspMXze6wdPTIGSTGLdIP4NAM7WUYNbmq8tRPm+h4w8jbiRpI7BSzM8c7NvOaxd1400wo r9t/Xfqym7h/0UNTRS7V9JKhxdOlGHY8Vv0M0xFnj4/fYoTcntRDCTkzP09Gu/fuEbkV9H8Riu nlxASVxCFzgIWqNCkE1fobiNpN1jvnFB7hk333c2k5ZFR838NNm76lehM10U3fwzudlbnzDkt2 HlZx0tN1U094bXNMvuolH2z5ramWfdwat2pV+MaNKWhoOZzwQk5B8QQX0qEtikCZUKpnHQXkkr lSHNd/bccUIHvYCcYLqmykhw X-SBRS: 5.1 X-MesageID: 63591331 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:E39jq6zvnrYqYvO/ibd6t+cLwSrEfRIJ4+MujC+fZmUNrF6WrkVSz GsfWD/VPfuMZTahLo0naI7n/EMEvJbczIU1SFNu/CAxQypGp/SeCIXCJC8cHc8zwu4v7q5Dx 59DAjUVBJlsFhcwnvopW1TYhSEUOZugH9IQM8aZfHAhLeNYYH1500g7wbdl2tcAbeWRWGthh /uj+6UzB3f9s9JEGjp8B3Wr8U4HUFza4Vv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vCdCxLIuDhWQetQKIRfi6olnLSD1n8QbGcBUJEWR3Cae2 iaXHQwc+bvHrbgq/YSbnquDtYqoTbdzRxIIA2nB4L+qHiDG5W7/k5RYWeOFcD2BBmP5/KKuO bdcw/3maaBVmV9Lt8x3EqpxzLJ47Nzq/ucIwgNhFXTNTlKqFrI/fSXWgZgR7vVAlu1DpA+7e kOT4d0La7yGNfTsHEMVOAd4PP+I0usZm2WK4Pk4SKkgCPSbIFZTvZ1uAiSx IronPort-HdrOrdr: A9a23:mJT8lKAKX1KZImnlHemU55DYdb4zR+YMi2TC1yhKJyC9Ffbo7v xG/c5rsyMc5wxwZJhNo7y90ey7MBbhHP1OkO4s1NWZLWrbUQKTRekIh+bfKn/baknDH4ZmpN 9dmsNFaeEYY2IUsS+D2njbL+od X-IronPort-AV: E=Sophos;i="5.88,367,1635220800"; d="scan'208";a="63591331" From: Andrew Cooper To: Xen-devel CC: Andrew Cooper , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Wei Liu Subject: [PATCH v2 1/7] xen/altcall: Use __ro_after_init now that it exists Date: Mon, 14 Feb 2022 12:56:26 +0000 Message-ID: <20220214125632.24563-2-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20220214125632.24563-1-andrew.cooper3@citrix.com> References: <20220214125632.24563-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 For the !CONFIG_ALTERNATIVE_CALL case, the use of __read_mostly was only a stopgap while nothing better existed. __ro_after_init now does, so it use. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- CC: Jan Beulich CC: Roger Pau Monné CC: Wei Liu v2: * New --- xen/include/xen/alternative-call.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/xen/alternative-call.h b/xen/include/xen/alternative-call.h index c2d3b70e312e..5c6b9a562b92 100644 --- a/xen/include/xen/alternative-call.h +++ b/xen/include/xen/alternative-call.h @@ -57,7 +57,7 @@ #define alternative_call(func, args...) (func)(args) #define alternative_vcall(func, args...) (func)(args) -#define __alt_call_maybe_initdata __read_mostly +#define __alt_call_maybe_initdata __ro_after_init #endif /* !CONFIG_ALTERNATIVE_CALL */ #endif /* XEN_ALTERNATIVE_CALL */