From patchwork Mon Aug 21 20:27:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9913705 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 D6D58602A0 for ; Mon, 21 Aug 2017 20:31:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C796928706 for ; Mon, 21 Aug 2017 20:31:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAE80287F4; Mon, 21 Aug 2017 20:31:43 +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 2EE7D22BF1 for ; Mon, 21 Aug 2017 20:31:42 +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 1djtKS-00048y-Na; Mon, 21 Aug 2017 20:29:44 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djtKR-00047d-EK for xen-devel@lists.xen.org; Mon, 21 Aug 2017 20:29:43 +0000 Received: from [85.158.143.35] by server-7.bemta-6.messagelabs.com id 29/14-03557-6B24B995; Mon, 21 Aug 2017 20:29:42 +0000 X-Brightmail-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msg-Ref: server-4.tower-21.messagelabs.com!1503347381!72705419!1 X-Originating-IP: [40.107.1.86] 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 62723 invoked from network); 21 Aug 2017 20:29:41 -0000 Received: from mail-eopbgr10086.outbound.protection.outlook.com (HELO EUR02-HE1-obe.outbound.protection.outlook.com) (40.107.1.86) by server-4.tower-21.messagelabs.com with AES256-SHA256 encrypted SMTP; 21 Aug 2017 20:29:41 -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=rumRyUrAUbFIQBSn1+E3J3L5iR0DhoHY0j2vgoOOHd0=; b=XXn6MB1ir1om8TKWQ1xc42vviJkAg7eMzzGLgjG8Mly2ZV7WIOWI8x4ZFCQsyuHXFf7Rula1WWmCVzhLF+ca/kmvQrlmzMaKgW7I2KVxVwi482voiG35AEtr4ybIK1B4oQf0lzWi31iIFSmgKltMGivCdOhQDPnlpmZqRwyNlWo= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.58) by HE1PR0301MB2140.eurprd03.prod.outlook.com (2603:10a6:3:21::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18; Mon, 21 Aug 2017 20:29:37 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Mon, 21 Aug 2017 23:29:31 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Mon, 21 Aug 2017 23:27:53 +0300 Message-Id: <1503347275-13039-10-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503347275-13039-1-git-send-email-volodymyr_babchuk@epam.com> References: <1503347275-13039-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.58] X-ClientProxiedBy: DB6PR0801CA0043.eurprd08.prod.outlook.com (2603:10a6:4:2b::11) To HE1PR0301MB2140.eurprd03.prod.outlook.com (2603:10a6:3:21::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 408ab573-59e5-486d-3768-08d4e8d35885 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HE1PR0301MB2140; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0301MB2140; 3:0WMCReTzpOlSi08zLoOnwTzCQbgUKZe7aGtWm77TgtvW4Ox+ihi8Th1hClKmDgZ/eza7YP3eZnaCEIiG3kOhnQbhXouyaVteDDZV4/0dMnYo53aFNsqkXCvwgplcFjyrObcKDo4/8NLYvSIvruCxmbhLXdx7SYYREN3oPCoA8qr9TwHCCdbWruC3K0MiiUl0P19KFSUu5plcwAQ9j7AeOEYResB/Es3Hnpoml9wL6eFTzpWSeskPq7NXzgbXAxvj; 25:UBWsxkkP1CF8CGwXjQi/63fDKIh3K8E5/IWNA7uLIO24bxG9R/yc1OgvBsSTcuX3vM6tF/LvLfR06MZ7AZI8ESKiMrV9j/x4/pOuCbSdCHcSdElmv7mIaVLOY7lm2/A9qeq1hNWKZGAGRnITv0niV2aZOB2KzpU5PJSTtV1pBDrawafRon6lRtuCMcpbeIzqgTeuyt+8EPEmMk/Lc2fJrHJ9Rq39gkvUZWa5bWC1SS7weeYujj2pha/+daYEj/65giKF06d0blufk1jpvQJjplqu60AuVWVzefsOUkmj8ef+iZGERsPQQ0Korn5r7j5hB7uRJURdB2+Nxae62U9WoA==; 31:2n8RYY0faU3OSpXMmhQe5bBxoE4QVsSvhSfNkuKmuHHkda/3LbS1lVXyjOe5gKNyus4wiN4EkX2DgHIgJ4SVRFPcPAH02m6TFUzEFrn6WHBrC3o2C84H2zBD4rNlkrktn6AualI2JWyLud8HDArlK/pzaqLLdxYU4ZSYLSQu/0GOPc5UvMGbP1g8qsIQM+fPYVExOeeh83s8xzBboLjp5oBukUpeNO+csWJAHu4KNnA= X-MS-TrafficTypeDiagnostic: HE1PR0301MB2140: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0301MB2140; 20:Cw6/593jtWuaxFFP3Q53xWGpa9WeZRW9mZky5zJ/1BqL5kIVgGtIAa375MAzATjSQOD59fg85gwElXUV/dQyxilHegxXzjDAnP5x9xvZUXC2k4P0UA+6jT8DxEqtiB/808v+pbixiaPgI8JVuBlGK2XViOxVUPVAb8us647RzCqOcNbmcQ6MqxWqlATE9w9Eg3gXNU7uBN5WDKrwwkd/Mk9PlfpIuA1e6huMLrfs+IGu08yjlTIoZVe2rWeoPdhFOCt0TP5FXSjfc9E5SOCacHST5G/ViElmTBzhhPC3Tyt8SF01csplwYI9ovOYZy71G9oXv4fR1WewBiN6kt+XPpYQJTRnKf3VvJGc6KgaWcEdOPPzPV8F2yeWNvi10Ut8HoqzTjNCnz/pZNNRr7SKSMrmaP/0d6CBI32d3SlYijhGHv+yUn/sFJvWzVKEBuww2wMrpxLfWTXwrbBaj5IWGjVhWMdv3EMOO5xGyjKVA4UIbM6RDIfAMhLSYZZGOAL0; 4:iKWv2CnMZvtvDsWjPxTGJTwle1Js7xDLpnHmVbATE79lzTHiorJXyV0jW9qN4pAxFKHbC6h7lK6EZR0CnJ13/tsYwUYCHcSraXLpjtzf+cxrOXDnkd6s+k7jjjZXaMn6MOyj2pGMv6yINa3lBakvCZbrvsHEYe7+nYknD2C9FqyNizm1HaXQllh0MaV5Sz5ca/WjV0stxPaCyv51bs1YImkVWWKpeSKFbiwrHomknMsjvwMp55T5qldonxh3kWHpdHOXKWsTA3nHrZ6tGnpKCwnrMgW8FV4SBxG9KW+ScnI= 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)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123562025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0301MB2140; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0301MB2140; X-Forefront-PRVS: 040655413E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(199003)(189002)(50466002)(48376002)(50226002)(2906002)(81156014)(47776003)(110136004)(107886003)(54906002)(6116002)(3846002)(86362001)(8666007)(66066001)(7736002)(53936002)(5003940100001)(81166006)(8676002)(305945005)(6916009)(2950100002)(6666003)(7350300001)(106356001)(42186005)(80792005)(97736004)(50986999)(76176999)(101416001)(2351001)(2361001)(105586002)(8656003)(4326008)(189998001)(5660300001)(478600001)(72206003)(122856001)(36756003)(68736007)(33646002)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0301MB2140; H:EPUAKYIW2556.kyiv.epam.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; HE1PR0301MB2140; 23:LWFJ3hCsfBu4DFzNp/dlisC93A+yuWyljrPTOBh?= =?us-ascii?Q?8I5BDrwB0Pmya0FdFORSC3rPwYVqLrp9EDg/SiBH/bP1WoF6niVUUfN7r5h1?= =?us-ascii?Q?uuPIax2n/Eoqacry+Ov6Tt9DmuwbtDzxc3j3M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HR3kCu5yqajDuzX/Plxjte50nHsI2AOGVN5q2s7ea41VTfYeY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2017 20:29:37.8982 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0301MB2140 Cc: "Edgar E . Iglesias" , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Subject: [Xen-devel] [PATCH v4 09/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 --- * Used case xxx: { } formatting as Julien suggested --- xen/arch/arm/vsmc.c | 63 +++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/xen/arch/arm/vsmc.c b/xen/arch/arm/vsmc.c index 46a2fde..673b23c 100644 --- a/xen/arch/arm/vsmc.c +++ b/xen/arch/arm/vsmc.c @@ -99,12 +99,6 @@ static bool handle_psci_0_x(struct cpu_user_regs *regs) return false; } -/* helper function for checking arm mode 32/64 bit */ -static inline int psci_mode_check(struct domain *d, register_t fid) -{ - return is_64bit_domain(d) || !ARM_SMCCC_IS_64(fid); -} - /* PSCI 0.2 interface and other Standard Secure Calls */ static bool handle_sssc(struct cpu_user_regs *regs) { @@ -126,8 +120,7 @@ static bool handle_sssc(struct cpu_user_regs *regs) return true; case PSCI_0_2_FUNC_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_FUNC_SYSTEM_OFF: perfc_incr(vpsci_system_off); @@ -140,42 +133,46 @@ static bool handle_sssc(struct cpu_user_regs *regs) PSCI_SET_RESULT(regs, PSCI_INTERNAL_FAILURE); return true; case PSCI_0_2_FUNC_CPU_ON: + { + register_t vcpuid = PSCI_ARG(regs,1); + register_t epoint = PSCI_ARG(regs,2); + register_t cid = PSCI_ARG(regs,3); + 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); - PSCI_SET_RESULT(regs, do_psci_0_2_cpu_on(vcpuid, epoint, cid)); - } + + PSCI_SET_RESULT(regs, do_psci_0_2_cpu_on(vcpuid, epoint, cid)); return true; + } case PSCI_0_2_FUNC_CPU_SUSPEND: + { + uint32_t pstate = PSCI_ARG32(regs,1); + register_t epoint = PSCI_ARG(regs,2); + register_t cid = PSCI_ARG(regs,3); + 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); - PSCI_SET_RESULT(regs, do_psci_0_2_cpu_suspend(pstate, epoint, cid)); - } + + PSCI_SET_RESULT(regs, do_psci_0_2_cpu_suspend(pstate, epoint, cid)); return true; + } case PSCI_0_2_FUNC_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_FUNC_MIGRATE: + { + uint32_t tcpu = PSCI_ARG32(regs,1); + perfc_incr(vpsci_cpu_migrate); - if ( psci_mode_check(current->domain, fid) ) - { - uint32_t tcpu = PSCI_ARG32(regs, 1); - PSCI_SET_RESULT(regs, do_psci_0_2_migrate(tcpu)); - } + + PSCI_SET_RESULT(regs, do_psci_0_2_migrate(tcpu)); return true; + } case ARM_SMCCC_FUNC_CALL_COUNT: set_user_reg(regs, 0, SSSC_SMCCC_FUNCTION_COUNT); return true;