From patchwork Wed Feb 16 16:21:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12748744 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 13F7DC433FE for ; Wed, 16 Feb 2022 16:22:29 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.274293.469744 (Exim 4.92) (envelope-from ) id 1nKN4L-0005Kh-JW; Wed, 16 Feb 2022 16:22:17 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 274293.469744; Wed, 16 Feb 2022 16:22:17 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nKN4L-0005KY-G2; Wed, 16 Feb 2022 16:22:17 +0000 Received: by outflank-mailman (input) for mailman id 274293; Wed, 16 Feb 2022 16:22:16 +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 1nKN4K-0004NT-Ez for xen-devel@lists.xenproject.org; Wed, 16 Feb 2022 16:22:16 +0000 Received: from esa4.hc3370-68.iphmx.com (esa4.hc3370-68.iphmx.com [216.71.155.144]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 996356f7-8f44-11ec-b215-9bbe72dcb22c; Wed, 16 Feb 2022 17:22:15 +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: 996356f7-8f44-11ec-b215-9bbe72dcb22c DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1645028534; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=82IywCEJaGTDXuJv2gZ75axUySAXEkRmFEmzOfBUsd8=; b=ULcf3U67X/HhBDl7NBXz4QXE6doACD75ozmaIj1UtA9BFRYuzjiLEitf leJG61Pn6w6bkW9oo170UDqWNdSeF8xE04K9zB7RfH3JTDVZfifPPA7xq fe6i0c4nQ51vcO96Uy6klPEC7OwLdgahtt9trTdcgVNrWWdqU0M6dkW3H A=; Authentication-Results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com IronPort-SDR: qGzaH+oGlJLizQdf4n0N3NDwTR6Aoh0kW3s8Lccd5JO12zx4JX+wVQg0K9hu8goepBbwTyu4I7 K54amvK2yIb3EuC1DYqbfCVEZkTPKxzINRhVTq7/Scei9sZUt8XIZv/I3XnUv8tXjGww0UGIuI rOrVK8aZ01cx0ojNZFbWql/zrtMnMTWQgdwLNRrhamjvO5pIGlcEIrMLjwYY11122Qta+AUduD /aAvY/Xgf9B2BVbEflpi0ss/Z7V7iIsoYMm83uqrNzUDWiHlYUyABErFoioxAsJTXR5cSwbPmR F/1yjODNBRpF5dvqTQIS7Lho X-SBRS: 5.1 X-MesageID: 66594733 X-Ironport-Server: esa4.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:MSHthK0Cyof1v3GUpPbD5VR2kn2cJEfYwER7XKvMYLTBsI5bp2EPx 2ZKXWCFOfyCNGujet5/b9nk9RhXvZaEzIc3HAZspC1hF35El5HIVI+TRqvS04J+DSFhoGZPt Zh2hgzodZhsJpPkS5PE3oHJ9RGQ74nRLlbHILOCanAZqTNMEn9700o5wrBh2OaEvPDia++zk YKqyyHgEAfNNw5cagr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d=microsoft.com; cv=none; b=X8aSQavogDgxfvmsjM1TwZmj6RAMMRo1Q+lyYGbMMtcZZ+buBI9HXAqM5fbjamfBnudnmS8hgbWxN8h0TXxUnc4sQSxe4LNJd5RoDYtgPtgvhY5jdYY5a125UGshNOdSapSudqQIRR1hOviRn/Q9RVJz3yfaPAapjFJoljS4OmycbM61fTNLo+bRCon7N+BNztShlvzVGiRNJylt+3N3RavA8z154gkSoTwTLbq9EtCM6FlQHjV36eI8g3uLAT97cKN6msFMJUdp82eQM75XrIv2/DfMcr/ZlU2Ve6COK2Extfuw6YnkNaBKbYhowBjKrITJxpwQ4UJTwUMeMn6IEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2JUejUh5yzqKtWUj7o1W9V/dctJs6neBQWjRyLXc7bc=; b=P76wra8HPaBySXFpiIZHq8L0kCgO+ABcBsqQvikZapNaIdhDNBC/24bcHp80Eav6g389p3OM9j4mw739BG/fFyOqIMlWT1om4gWQO8KxWPJnzByvFve+4DfHRYHj0bM4mzmOtZvQMa6VIF/wIGoiH9OFoTKIshTaNO+EzkUGxE9Ij1eB8PYOvhldjUQUk++LGijc31gZ4lRgc/AMo/xD2HwROA67wL447SAXoz62tBfrllIQWPQsG8cr+vbiMYYeJbea+PDyE2O0pklDM2BR7ilViOSeerUPQbym0vLBW/rC/CY7oeho7FbJpOhbEEZsyI5qb6VObJ/J6uA8qy1eYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2JUejUh5yzqKtWUj7o1W9V/dctJs6neBQWjRyLXc7bc=; b=g1GjV/KTk6DNZswjMPhqE/OmGGa2FOCfQuRRzeK5Ox/KFq0b2YgASCiANkurVBhfDuoWsFKgspQSyiZH/hceeDd44ZGhlrOAIAlZk3sxjfaVAwv8zh5k85fPXQz8TPDNtdlZDlUL/6JA4tvlCkmPfcckKiWiV5fJDOMOaHzIrpE= From: Roger Pau Monne To: CC: Roger Pau Monne , Jan Beulich , Andrew Cooper , Wei Liu , George Dunlap , Julien Grall , Stefano Stabellini Subject: [PATCH v2 0/3] retpoline: add clang support + Kconfig selectable Date: Wed, 16 Feb 2022 17:21:39 +0100 Message-ID: <20220216162142.15384-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: LO2P123CA0016.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:a6::28) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 463c500d-cbcf-4b95-a5f1-08d9f1686dfa X-MS-TrafficTypeDiagnostic: SN6PR03MB4143:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2Kci9GkdqeQnDtOgpGWWNl6zFyfb0wkaDWEMu9+M7y1XaTSVr1jrGpWKzHKiqv0VFqyi+544TFmbyaXf9vaw5tHhYa9csQy+mDWctUtXPgaPWu1OgJug8RVpmKqy9m0iHdn7MRsiKxT+1HlEfJZlDXw0/rjDcbLMFHMrleABYEC8Sz8+aZI1XtD8374ziHmN+HL4cKC8b30d2EkC/NM54vdZ2fmDOUxrc36w4MFmsnxOJdQJtburZzgeGrwKSoTAzimS10UYGu4QlvufxD9nRlIsZ5dzSkUUl01VGYozcm80KYktI1wNg4D9qRdxidWVwVJMoS7cpm3oBPprMR9MCws2MD9T+PCSOn/HCchoTSiwxuvAtU3L+OKy/NIAioTA+nM/2a67Acu22piwp9kVxAW0YuJ6lY0L3EFrSU0Q6Cnv0XrVcPedx1MQdCO7eYfBeZPL69vfw6Oq+1jecFyiSKB83irt0Pwle7brEpde2ZEFOBcNQhnJ0eHN3k/3DeBw7B7FVv46qie558l77kclNPDZx61HlLLrhpaCTNqNRNGAzM4yZXYO8zK+QpPNGa6P+vGVZNlGGhduWj382ot+ZJqlVnQNzz9PP6aD9qgAU87jt0g8TSy/o51mSUtqw5hMUxg1r23h8WH1lClUwhQ0YA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(6916009)(508600001)(4326008)(86362001)(1076003)(186003)(6506007)(316002)(8676002)(6512007)(66476007)(36756003)(2906002)(54906003)(5660300002)(83380400001)(6486002)(66556008)(2616005)(66946007)(26005)(6666004)(4744005)(8936002)(38100700002)(82960400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?tnT6dSUysLNbuucB7vH83TyRP5Fl?= =?utf-8?q?YnVOZlzVthFHM0Yvl3nYCKj9hoiLh5TKPAZHIw4USeemdYV6yypISuq0vqSNqsqze?= =?utf-8?q?SDrSi3uAu2KmRbVNBHOQYb+EufIcreM9VZvYySEIafb+6BdVHImGIB8gxC988ygk7?= =?utf-8?q?3e9YZvtZO1EQSeweyo4RdqwsPzYDwZNv9JxppXZ//1fDKu1D67VKPcsY+4GJrIxGN?= =?utf-8?q?urOGsqvC2CaERjrbWMVdWybVYGUEy7TY9GcapvGE+y2BqKsyuytguAga8MHZMnU19?= =?utf-8?q?mpgmcDWa8nzxNN4MZuiyHAjNVk2Zvh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u0vOL+yt6ya9mE6Cuv0F8WupPmyXWsIKDszEyLBn?= =?utf-8?q?OunWnCe6TIYyt8149wqyhlpF4oD/AzIxGeTtKBV6d9iAHwqHAATlFWpFe7DWcwon4?= =?utf-8?q?C9WO8CEU+oIf+LBfq8uN0AzsphdXgEIv5afFkO9nHhT7RYgsf/BLTurdima6GhDkL?= =?utf-8?q?Q0y+7sx6wwjOIDP5Rq17QHerKWFFqjEZZu7Xfsd0ieGm940g/TBguS/iL9dMLUfCq?= =?utf-8?q?1ybMw+CB+Q5tAzDjtbGw5GhRjf2jOeq6M+L0glXPfRhtaYNrPdnLrb7HeLJxhVZFL?= =?utf-8?q?U/nXebrS6ZxpE09cG9er2zb0Ff64YAYiIuzk4AwUICX6itNhKIkB2bmbzrz+49FFL?= =?utf-8?q?rUCAODnaExkVRHsSJwk8R4dt7mdS3DD45o+ZSSP8UxmdCONgqBI4h6I=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 463c500d-cbcf-4b95-a5f1-08d9f1686dfa X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2022 16:21:47.5077 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rbONISsoJjG00FeimFdKfD625fnDRnIKBal4+9YZXtlcJ4330QgDkafrlfCH2rFtNYPMR8W3YzjAqguij++3hA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR03MB4143 X-OriginatorOrg: citrix.com Hello, The following series adds retpoline support for clang builds, and also allows the user to select whether to enable retpoline support at build time via a new Kconfig option. I've tried adding a suitable description to the Kconfig option, but I'm sure there's room for improvement. Thanks, Roger. Roger Pau Monne (3): x86/retpoline: rename retpoline Kconfig check to include GCC prefix x86/clang: add retpoline support x86/Kconfig: introduce option to select retpoline usage xen/arch/x86/Kconfig | 5 ++++- xen/arch/x86/arch.mk | 13 +++++++++---- xen/common/Kconfig | 16 ++++++++++++++++ 3 files changed, 29 insertions(+), 5 deletions(-)