From patchwork Wed Oct 4 21:00:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9985471 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9ADC8602B8 for ; Wed, 4 Oct 2017 21:04:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C38F27E5A for ; Wed, 4 Oct 2017 21:04:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8115228BCC; Wed, 4 Oct 2017 21:04:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 136C927E5A for ; Wed, 4 Oct 2017 21:04:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzqoA-00006N-Jn; Wed, 04 Oct 2017 21:02:22 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzqo9-00005T-Ab for xen-devel@lists.xen.org; Wed, 04 Oct 2017 21:02:21 +0000 Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id 4A/E4-01778-C5C45D95; Wed, 04 Oct 2017 21:02:20 +0000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: server-12.tower-206.messagelabs.com!1507150938!78324422!1 X-Originating-IP: [40.107.1.66] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 42509 invoked from network); 4 Oct 2017 21:02:19 -0000 Received: from mail-eopbgr10066.outbound.protection.outlook.com (HELO EUR02-HE1-obe.outbound.protection.outlook.com) (40.107.1.66) by server-12.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 4 Oct 2017 21:02:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=EPAM.onmicrosoft.com; s=selector1-epam-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Uw4fyXdgKl2znXGNyB+4ShE1idfEs/tZgUABeGvidFk=; b=V9TtX1rCzS3+sG6xxTK6rlXd68Y86GEL/F74sSZobRFywgZs7DLWLHkvaBUXpnZxaxUEI8o4teErwqpRapWavGMeDr/qTAx3tS6Wrf1uBav+RwXk5ew9HUzZwIlCXx9gFghzAReaVtgC3Fyu1ICWQ8MxpSj/Cgza0ZYDjRX4Hnc= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.53) by DB6PR0301MB2133.eurprd03.prod.outlook.com (2603:10a6:4:46::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 4 Oct 2017 21:02:11 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Thu, 05 Oct 2017 00:02:08 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Thu, 5 Oct 2017 00:00:26 +0300 Message-Id: <1507150827-7858-11-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507150827-7858-1-git-send-email-volodymyr_babchuk@epam.com> References: <1507150827-7858-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.53] X-ClientProxiedBy: AM5PR0602CA0002.eurprd06.prod.outlook.com (2603:10a6:203:a3::12) To DB6PR0301MB2133.eurprd03.prod.outlook.com (2603:10a6:4:46::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0c46d4e4-804f-4573-6e8a-08d50b6b2efc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:DB6PR0301MB2133; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0301MB2133; 3:Qgr4CmKAUFEf+GNysKk8aHxflnZcf4SuBKOy9S33Kp0ver+P6jBxHPgu/AsUDFpd5Ke50Yj2MjYyAphQqt06N/K8aBWjxQiOcZWP3/VX/17uxCGuXpyKDhAI1lSUdz//BCfkZ6yCiY5mw03yl03kGvQ4/QnIUSfWQQei1cg7+PZ5HrCdyDPnS0WGzbcV5+XQicK09Sj5eU7u4lNLLXc/o+PFcPkGl5CuFzvVfQYsrvSSdggWuq1eea/6aYuF2eFW; 25:4wr8veCUnhnPw8fadrtX2d9f46Nzqur6ehmRL44vGp7g3P4NUAN+eMskonktrXeUu9WKw0a8lp9O1oR3ZXuSosBOFs1TY2/LSOzArtbuS15v5o8vL/WgDYj0c19RTSJXeOyYkM0Q+y9gQcEOBBTr9pZrO3F4+NnqqxZBhtyBTeTc9UqdumVZpNpmy32SRVyOPmzPR+hS5T6z3Oo+UeGaD4N5wrZ8lIKkdFAR8Pq81btlLg10JG5KmN83iLTc+YGlo+KTRV0BKfEPYumwR811UqGHdT3Gdw1ZNfgeRMj5qCsj8OcE/DdUP7u6voH/KsJ8XQTtD8dkv8iVMqywvUlE2A==; 31:SZToibIyj0tWB1QTpJvNLK2MIZgdp/NR+0dl2ZFnrmVsB1cE75Uwvm2QSYpB+It+Pln89SvrmzzDMl8gLuud+tvoip3oQwnHmkBl78D5BeA3jpFvfM75OlRRcSwAQtHoo42htFSLFqkq0TjjNyvMGoiRMPhMf1h83eNum9AXBx4pJxOm1xNxZAgtsNYg9gZvwfpRYXZTs82nK6S9FcXupEsAOLCjdJeSJcKSNnCD34w= X-MS-TrafficTypeDiagnostic: DB6PR0301MB2133: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0301MB2133; 20:/P9n1Jw1+Z3xp9CvI4BKTiiz1nnOXRuz287N3zYcLvy7kXiq3RmuovwZN8nhbWtVVi5QSDaazv7cuUxc6kYkNhZEL9ifthpOKnM90qwHLA5whgg5RZl4kT+iRRNatQP2QIuAEG+U2DwHrdva0tyy/w9R2k8FeAEmhjuKvZOqDJ0dAQmGHHc/up4HKR4xBgr/Bhr/kFOOAVHnuqdIqQ+Iv3/As/6zhqxjsFe6gen7rxJ2qlwZp25ir7urWAFkfBHNJzszybE1AmYCdcVYPmWABY73iqrRUkBb6ZDsGwH3q8u8M8rU20pKA40ajrqW3pEmACU0Y76JE+GOQhUf6D3t6CvP6UMfghz/Z1I7Q97GhZ+vEpq64z3PlHfofbK9WYi9x6Ih00ogX2xF0pT6oYgFbotSwHhWlxw9EyR6s+UAR6bQk39DSSW9frGK8dm6pOCsoU8SXhkEEPalyfjjVBgAuxRxiQQm135qL6laAav7ETgyP2EEPvVBzY2Im4v+U5Qn; 4:0M4FTdaXHd6k2IkWJ89vaNgcNnLelT36wq+WRyivY3ZKz5obqqo1SrgRhT+4h+WYLa81cm/QP3pWBHQejIdrtr5s/r5t+ijuaAT5hU4O2/MTm5Suo1yerxdekJBoywiuFkS3U7jm3lYBs56DdCSm8u9Z5JMdglYE3/E1bHZLj+soBiLVnVt9tWzMrcuut/EzG51GQyOaniPdu1rEwi/NOJvr0VInI19kV4Q7LHuawOXzqhv3rWLxLjCz03wn18lLUwuOUaZW/ZPVPImzo69ikPX9d9LO/AdoCnWA6LFbjUo= X-Exchange-Antispam-Report-Test: UriScan:(4114951738403); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(6041248)(20161123562025)(20161123558100)(20161123555025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR0301MB2133; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR0301MB2133; X-Forefront-PRVS: 0450A714CB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39860400002)(346002)(189002)(199003)(5660300001)(81166006)(48376002)(97736004)(316002)(16586007)(2950100002)(5003940100001)(50466002)(54906003)(80792005)(6116002)(8656003)(3846002)(8936002)(8676002)(478600001)(2906002)(305945005)(81156014)(6916009)(42186006)(7736002)(33646002)(4326008)(68736007)(53936002)(86362001)(106356001)(101416001)(2351001)(50986999)(8666007)(189998001)(76176999)(50226002)(2361001)(47776003)(36756003)(72206003)(6666003)(66066001)(122856001)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0301MB2133; H:EPUAKYIW2556.kyiv.epam.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: epam.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0301MB2133; 23:rS4UrTNSOU/JOUpLq1XSmvHeGGYbVioomm6fucJ?= =?us-ascii?Q?1w20N4dVfLsY6/hGECNjOa8dtzJ7IOYFOgXXASozuNGkZpS6v2A+lNSXheMq?= =?us-ascii?Q?frgcORuFW/Acn2uyNUlHVJWz5KUWtdxMJkRrf2AJRcLOC8J/O7rQYRHE1/hl?= =?us-ascii?Q?sMf4atfp0cd5pBVDGi+Tzu69L+gChs6xSaFxpVUrS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99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2017 21:02:11.5807 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0301MB2133 Cc: "Edgar E . Iglesias" , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Subject: [Xen-devel] [PATCH v7 10/11] arm: vsmc: remove 64 bit mode check in PSCI handler X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP PSCI handling code had helper routine that checked calling convention. It does not needed anymore, because: - Generic handler checks that 64 bit calls can be made only by 64 bit guests. - SMCCC requires that 64-bit handler should support both 32 and 64 bit calls even if they originate from 64 bit caller. This patch removes that extra check. Signed-off-by: Volodymyr Babchuk Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall --- xen/arch/arm/vsmc.c | 62 ++++++++++++++++++++++------------------------------- 1 file changed, 26 insertions(+), 36 deletions(-) diff --git a/xen/arch/arm/vsmc.c b/xen/arch/arm/vsmc.c index 77fc915..ff84442 100644 --- a/xen/arch/arm/vsmc.c +++ b/xen/arch/arm/vsmc.c @@ -135,12 +135,6 @@ static bool handle_existing_apis(struct cpu_user_regs *regs) } } -/* helper function for checking arm mode 32/64 bit */ -static inline int psci_mode_check(struct domain *d, uint32_t fid) -{ - return is_64bit_domain(d) || !smccc_is_conv_64(fid); -} - /* PSCI 0.2 interface and other Standard Secure Calls */ static bool handle_sssc(struct cpu_user_regs *regs) { @@ -165,8 +159,7 @@ static bool handle_sssc(struct cpu_user_regs *regs) case PSCI_0_2_FN_MIGRATE_INFO_UP_CPU: perfc_incr(vpsci_migrate_info_up_cpu); - if ( psci_mode_check(current->domain, fid) ) - PSCI_SET_RESULT(regs, do_psci_0_2_migrate_info_up_cpu()); + PSCI_SET_RESULT(regs, do_psci_0_2_migrate_info_up_cpu()); return true; case PSCI_0_2_FN_SYSTEM_OFF: @@ -182,48 +175,45 @@ static bool handle_sssc(struct cpu_user_regs *regs) return true; case PSCI_0_2_FN_CPU_ON: - perfc_incr(vpsci_cpu_on); - if ( psci_mode_check(current->domain, fid) ) - { - register_t vcpuid = PSCI_ARG(regs, 1); - register_t epoint = PSCI_ARG(regs, 2); - register_t cid = PSCI_ARG(regs, 3); + { + register_t vcpuid = PSCI_ARG(regs, 1); + register_t epoint = PSCI_ARG(regs, 2); + register_t cid = PSCI_ARG(regs, 3); - PSCI_SET_RESULT(regs, do_psci_0_2_cpu_on(vcpuid, epoint, cid)); - } + perfc_incr(vpsci_cpu_on); + PSCI_SET_RESULT(regs, do_psci_0_2_cpu_on(vcpuid, epoint, cid)); return true; + } case PSCI_0_2_FN_CPU_SUSPEND: - perfc_incr(vpsci_cpu_suspend); - if ( psci_mode_check(current->domain, fid) ) - { - uint32_t pstate = PSCI_ARG32(regs, 1); - register_t epoint = PSCI_ARG(regs, 2); - register_t cid = PSCI_ARG(regs, 3); + { + uint32_t pstate = PSCI_ARG32(regs, 1); + register_t epoint = PSCI_ARG(regs, 2); + register_t cid = PSCI_ARG(regs, 3); - PSCI_SET_RESULT(regs, do_psci_0_2_cpu_suspend(pstate, epoint, cid)); - } + perfc_incr(vpsci_cpu_suspend); + PSCI_SET_RESULT(regs, do_psci_0_2_cpu_suspend(pstate, epoint, cid)); return true; + } case PSCI_0_2_FN_AFFINITY_INFO: + { + register_t taff = PSCI_ARG(regs, 1); + uint32_t laff = PSCI_ARG32(regs, 2); + perfc_incr(vpsci_cpu_affinity_info); - if ( psci_mode_check(current->domain, fid) ) - { - register_t taff = PSCI_ARG(regs, 1); - uint32_t laff = PSCI_ARG32(regs, 2); - PSCI_SET_RESULT(regs, do_psci_0_2_affinity_info(taff, laff)); - } + PSCI_SET_RESULT(regs, do_psci_0_2_affinity_info(taff, laff)); return true; + } case PSCI_0_2_FN_MIGRATE: - perfc_incr(vpsci_cpu_migrate); - if ( psci_mode_check(current->domain, fid) ) - { - uint32_t tcpu = PSCI_ARG32(regs, 1); + { + uint32_t tcpu = PSCI_ARG32(regs, 1); - PSCI_SET_RESULT(regs, do_psci_0_2_migrate(tcpu)); - } + perfc_incr(vpsci_cpu_migrate); + PSCI_SET_RESULT(regs, do_psci_0_2_migrate(tcpu)); return true; + } case ARM_SMCCC_FUNC_CALL_COUNT: return fill_function_call_count(regs, SSSC_SMCCC_FUNCTION_COUNT);