From patchwork Mon Feb 22 16:49:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12099167 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45275C433E0 for ; Mon, 22 Feb 2021 16:52:10 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E072E64F00 for ; Mon, 22 Feb 2021 16:52:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E072E64F00 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=XfoX1u3HBKE8vuP5O+paATTJYShV0cChEGkpCN01DPY=; b=e9xQVWunJgVSdYaj9erd5MYJUX zWuVOvMxV7klDu8Dz43xaUH7OYcdeY1TX2TfIrMdrwGT4G9yhKpHX9yQ/eZqnnMasuQ+cxAaHUbqc z/s7E1bt2Fy7SNMdF7R8vTfgwnTWw0Ss2unhQO4VLQ2skLILA6wcEiARUWYBHQ4gES29T0gD8yLaO Rh6yWigQH9dTcusz7na4OUuAlcfWaLSvM6YuI6gsSGOUzsXGUWjmdIA3iRfuqfoCijxIelw6Usphh L+5ei54DVZcIrujjlAceYHjS/6WdZ6LrWedDvl5M5yFUcAL6U0q29gZLqshpAX11DX3xb+d4d5jL/ hxFo1UFA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEEQ6-0005mB-1G; Mon, 22 Feb 2021 16:50:50 +0000 Received: from mail-db8eur05on2069.outbound.protection.outlook.com ([40.107.20.69] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEEQ1-0005lO-FF for linux-arm-kernel@lists.infradead.org; Mon, 22 Feb 2021 16:50:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1yz9hIPlfNTtOC3wkoSB3pZADw5dgvGCYwG37qNgSgM=; b=7GbzVXGTXtLYILeCNDPnr6thqXbnqz7ItAz6vxMrXn/wASNi8LqSJ10aObHDBrpxZJElEmJYnyKtGk+DDr394CxBBwt26oeZnUc1mSVY6EZyNwCRjfCQV4ETJsfUTI6UR2l7YEPvlm3dno2GcfyD3oe29CsPiCTZyUFO+qmi8ts= Received: from AM7PR04CA0029.eurprd04.prod.outlook.com (2603:10a6:20b:110::39) by PA4PR08MB5998.eurprd08.prod.outlook.com (2603:10a6:102:e9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27; Mon, 22 Feb 2021 16:50:41 +0000 Received: from VE1EUR03FT057.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:110:cafe::51) by AM7PR04CA0029.outlook.office365.com (2603:10a6:20b:110::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27 via Frontend Transport; Mon, 22 Feb 2021 16:50:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.infradead.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.infradead.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT057.mail.protection.outlook.com (10.152.19.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27 via Frontend Transport; Mon, 22 Feb 2021 16:50:41 +0000 Received: ("Tessian outbound 2db1bbc8a1d2:v71"); Mon, 22 Feb 2021 16:50:41 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8ff6825797105433 X-CR-MTA-TID: 64aa7808 Received: from 5a9f46f9aa20.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id FBF4EBA0-18D8-408E-B17F-2E6E54C668EB.1; Mon, 22 Feb 2021 16:50:31 +0000 Received: from EUR03-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5a9f46f9aa20.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 22 Feb 2021 16:50:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yk/f5JIDLE6UEGwMsuEPhNo5W3kl5ymwIkW5alWPIVpbIPsbGV1P+nOYRBs7epBFtRxGIrLvy7TD28EoU7bYvKnGqYYFjEZwVV9gmSF0mMyvzW7WUmQHw4WNe9ft+7kEoLJulxn2zYIgvhL8YsEC7rVZsjR/3poftFNWZxChMQaU8yKFg3UUQ0zAEj1giwey5csnTlP3wPSv+miiGcTb4UwVOFWIX1MYOlVuXAKVXeaSmxvzEcSVANYjmlZk68WUmCnZ4rCnQvYQZTn7lmo/oDJ6AEIYsD4MZItoLhqlsPOZoQeWrqewHuTfHLdIw7exS9OFiDySslQRSf1QHh6ndA== 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-SenderADCheck; bh=1yz9hIPlfNTtOC3wkoSB3pZADw5dgvGCYwG37qNgSgM=; b=JVWdkfG1B4OCgmnxDeuyfmdtJpJTk/G9Q26Isxqem7U203pPrK+LsEsdu5Lp+oRyyODxctfMglRpYIJf9xUxJe069Le4XB6unxgLm8wGnvvRr9F9k+qXndm/nu8cc6XfEIvBdD4yY0kWmZsL7yu5o6Aez1EjuzNR7h2KL58y9j+XUgZKZM0oIsKOgs54BmRvswooAMg6XSohD0wtUuqg7zIwpMtpWVuESo/R5vxwERT6UxkRToatgdfmBVg+YbU+lUiXkG95l6kbxzgULRUjQ6uh76pqZWx9OdqJgLWFHhV7XvdN1dqclmZKn3ULRe/mmw3ccuVcgCGx3zCROfJKhw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1yz9hIPlfNTtOC3wkoSB3pZADw5dgvGCYwG37qNgSgM=; b=7GbzVXGTXtLYILeCNDPnr6thqXbnqz7ItAz6vxMrXn/wASNi8LqSJ10aObHDBrpxZJElEmJYnyKtGk+DDr394CxBBwt26oeZnUc1mSVY6EZyNwCRjfCQV4ETJsfUTI6UR2l7YEPvlm3dno2GcfyD3oe29CsPiCTZyUFO+qmi8ts= Received: from AM6P191CA0010.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8b::23) by PR3PR08MB5755.eurprd08.prod.outlook.com (2603:10a6:102:86::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27; Mon, 22 Feb 2021 16:50:30 +0000 Received: from VE1EUR03FT045.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8b:cafe::9b) by AM6P191CA0010.outlook.office365.com (2603:10a6:209:8b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27 via Frontend Transport; Mon, 22 Feb 2021 16:50:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT045.mail.protection.outlook.com (10.152.19.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3868.27 via Frontend Transport; Mon, 22 Feb 2021 16:50:29 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2044.4; Mon, 22 Feb 2021 16:50:27 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1779.2; Mon, 22 Feb 2021 16:50:28 +0000 Received: from e124191.cambridge.arm.com (10.11.7.12) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Mon, 22 Feb 2021 16:50:27 +0000 From: Joey Gouly To: Subject: [PATCH v1] KVM: arm64: make the hyp vector table entries local Date: Mon, 22 Feb 2021 16:49:56 +0000 Message-ID: <20210222164956.43514-1-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 139ede2c-97e2-4ddd-75c4-08d8d751fd41 X-MS-TrafficTypeDiagnostic: PR3PR08MB5755:|PA4PR08MB5998: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:4714;OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: DP5ITZlNyQP6tySvyufu9/5gSYi7SllnmgC4PFliypfYhKGRujVlTNF1FGjwKa7p5TEJu1I43GKHvNZ0osc6Gp4hjBAIEEWW0imBUgaG645ffq2JnOZPsHpsmhEn3Fl0JWULepWALq8mb1Q+T5KgFTF4k8FVjXTxYkupT3jav6De2sck6A3k6AAaWeQuRAM1UJHPdd/SoobGDZBtAkBZgiiM7Cr+ygRBSZ+bOLB7FOtlCTahRFTdYEjled0w59DVHpIz8KtrVvoaB7mhj+DCLhVbMwB44LvdTKhcEslIOrvc+bJ47kqh9gudnAqv4nYmOyG4kuB9araMf44LMB0ewLHWNcb/1O7ulqYkOurUc8ybJOYyg7kZ7m3KqpSV6KBLZ0kfazCUxrHQd6SSdGieY3BSjH5M54JteZMZxwYDff7CCGaSN7mnEwHSf3yYVuHMKCpFALDh/ZU5TRuU+C4lyOybSMTq2mlvH5pfZe+chHOlH0W+yfRrw1fe+rF0yeH0euTfNGgI98Cfv5ajXJ8GNhiKD9smhIbdtdSDJyPM/uLH8ILRz43DSK7eYjJ+hHIFpnQnY8VHNXX3FbHgTuVfo67cAI+SKpAEFsbg8bzQ392DZOkNfuOpEsCgvQBbYKDLJuGf4Tg8OJkTxgli1cn2RqzpyWMBaJrKwpdC77QaMjUbtbI/FigfYucXFlfdRQUa X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(136003)(346002)(376002)(39860400002)(396003)(46966006)(36840700001)(478600001)(83380400001)(36756003)(316002)(82740400003)(70206006)(82310400003)(6666004)(426003)(8676002)(26005)(8936002)(70586007)(44832011)(36860700001)(186003)(1076003)(2906002)(336012)(7696005)(5660300002)(4326008)(86362001)(54906003)(356005)(2616005)(6916009)(4744005)(81166007)(47076005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5755 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT057.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 4921438f-4c1d-4312-9e24-08d8d751f647 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I9CyqTzSnZS6wklqZ1+zI4exWXn4VpabvEXagzHuMatMwXZXT+O9zp3sSOw9QLu+aKBqfR+C6OFpA6ZcjkFPrMLg6kJ8MHMO76fPKZkkKzkEhWT5STLlhWgao/yS7WTdbUlwVCu96UwMlH8R9XdO/5TkgWWGVucTefu97luHmRXcuJGwFQDTd+30V6gh50LIKggJ4zO/qrDcnrBGHKpyB1Dhryc4AHVMWmpFzQic79zRVlOjUB5XLW148R4XAG7igMtaotjT4UwcDNNSLZONRpYGlQlvZuiqhDm6OKH2GZaAGd3UzyR5qaGfixEFiNgRdejOH2bRkxqlcKTQt8jCYrIiLDASlbR5D+jiJBkQxT6qxsrK2aTW9RD5vfw7JptEQLRUjWH48+O9e+M0YpoXatlMpdvvk2cw9qg1NUWDduodaQMiV+Pkia5liUFXA3k9gZf56FZSkAtU9FgFjbjPAsLCtrGJ/sEWKkynvhF+x40JxOjvvIC4WqkBch7UeIGoldx2hvtDOdizaKa9J9422f0aEJ1yCWBUCjlnqiCkqu0tvXMJEH6cCICA2aJPZIOrl4r7d5rR86izgc3ixJfgHUPrwzxsYMA3J2YsqfYc+JGATZXlnk0BCNtpN4jZCZaxwhgLwUYv7Mn8ied3n7aHng== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(346002)(136003)(39860400002)(396003)(376002)(36840700001)(46966006)(36756003)(316002)(83380400001)(82740400003)(478600001)(70206006)(47076005)(426003)(6666004)(186003)(82310400003)(36860700001)(8676002)(70586007)(8936002)(26005)(44832011)(2906002)(7696005)(1076003)(336012)(86362001)(4326008)(4744005)(54906003)(2616005)(6916009)(81166007)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2021 16:50:41.2854 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 139ede2c-97e2-4ddd-75c4-08d8d751fd41 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT057.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB5998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210222_115045_634596_FF0FA10F X-CRM114-Status: GOOD ( 12.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Marc Zyngier , Joey Gouly , Catalin Marinas , nd@arm.com, Will Deacon Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Make the hyp vector table entries local functions so they are not accidentally referred to outside of this file. Using SYM_CODE_START_LOCAL matches the other vector tables (in hyp-stub.S, hibernate-asm.S and entry.S) Signed-off-by: Joey Gouly Acked-by: Will Deacon Acked-by: Marc Zyngier --- arch/arm64/kvm/hyp/hyp-entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kvm/hyp/hyp-entry.S b/arch/arm64/kvm/hyp/hyp-entry.S index d179056e1af8..5f49df4ffdd8 100644 --- a/arch/arm64/kvm/hyp/hyp-entry.S +++ b/arch/arm64/kvm/hyp/hyp-entry.S @@ -119,7 +119,7 @@ el2_error: .macro invalid_vector label, target = __guest_exit_panic .align 2 -SYM_CODE_START(\label) +SYM_CODE_START_LOCAL(\label) b \target SYM_CODE_END(\label) .endm