From patchwork Tue Aug 8 20:08:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9889023 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 C53A260352 for ; Tue, 8 Aug 2017 20:11:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B530D287C0 for ; Tue, 8 Aug 2017 20:11:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A928F28769; Tue, 8 Aug 2017 20:11:44 +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 1F9E028769 for ; Tue, 8 Aug 2017 20:11:44 +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 1dfAoV-0000aA-1W; Tue, 08 Aug 2017 20:09:15 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfAoT-0000a1-As for xen-devel@lists.xen.org; Tue, 08 Aug 2017 20:09:13 +0000 Received: from [193.109.254.147] by server-7.bemta-6.messagelabs.com id 09/B8-03557-86A1A895; Tue, 08 Aug 2017 20:09:12 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1VSa0hTYRj2O+dMT7Yjp2nsdank6CLqVlpIBEE kgWiKQT80hDyz0zbYrZ1lk/4olTUFM0PEC2plSJpGVmYOyyyxNB2o2YW0IDVbWgzDoGV2zs7s 8v16vu+5vM8HL4nLliUKkrXbWKuJMSgDgwndtoBklVZRkr298V7cribPVWIvSul3erFMdFiiN 2nM9lyJrrS2mLB0Rtm7qqpQISqGEhRMEnQRDr2VXkkJWkMiOgc67jiQgGV0GQYVz5UizoPltk nfeyC9E9obXEECDqM3wMTiGBKCcPougvEOl08USmfBUuFln4igN8Pb2jc+TNGpMLVwHRcw0FH wesThw2voNLjzchAXh6WCs6cBifp18Kx6mhAwTgM8mpvze6Oh11vtx5UI6m7JRe9W6PHO+98j oX+4jveSPE6H1hG10BPoCQw+X7lNiJfTQdDytBMTDfHwcLoCFwlnIPwavYtEIhbaX3j8qRbob nEGiaJXEvg489VPRED//VZ/7LQEbr6YxcROufBlxYuJxDIFpeUf/HZHENyqXMLL0Zaafz5b88 9nGxHWgmI41prPWlWJiWqNVa/V2YyM3qBK2J6kNrIcx2hZA6Ph1HlmYwfiVyGAP13oRsPBPhR OYsr1VEecI1sWojEfLdAxnO6I9YSB5fpQBEkqgTJASbZsnZXVsvZjegO/T6s0kFJlGNUl0BRn YYycXitSg0hFustXljAZYTKbWIWcOiSIaEGkO2H6E7G6laMoUhFKIb6UTGphrUa97X/ejeQkU oZSa8P5FKneZPszyc2XwPgSWekOoYSN+UspCtElwlF6U9OsH4j+Md7nORszSXNnikgsoNtbVp Thqv/m+b5/oj5zYf3Jc82PK7Yly7sv5k+9qu5V9pEzZleuc9fx3Rt3pM3u+7ll05AUfZp9bcM XK9oKHpwfaBpym1PwPeacU0kpDt10yGT8Abei/sLYu8mxmmtPlubfq6uGEzLKlQSnYxJicSvH /AY445tekAMAAA== X-Env-Sender: Volodymyr_Babchuk@epam.com X-Msg-Ref: server-11.tower-27.messagelabs.com!1502222951!79109068!1 X-Originating-IP: [104.47.0.67] 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 34925 invoked from network); 8 Aug 2017 20:09:11 -0000 Received: from mail-he1eur01on0067.outbound.protection.outlook.com (HELO EUR01-HE1-obe.outbound.protection.outlook.com) (104.47.0.67) by server-11.tower-27.messagelabs.com with AES256-SHA256 encrypted SMTP; 8 Aug 2017 20:09:11 -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=5XCzj55m+Spd3bKKZwYDMkabNYLGulJNpRfti4mqcm8=; b=UbtJoy3hFIoPYV8GV021sHLe+I9ACX55nKE96roAyjhBXLtrGRkQiwefPUKJbN7BPLjb2yTal/8QFdL0+sm6Bip57Sk8V+N2hyDxg6QFdOuW+IJXCrngG4JVFpxIR7UDK+bfB2N3x9gJYApUZ+KAPyABj0AUqirHGQmcWwJqSsg= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.58) by HE1PR0301MB2139.eurprd03.prod.outlook.com (2603:10a6:3:21::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1320.16; Tue, 8 Aug 2017 20:09:07 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Tue, 08 Aug 2017 23:09:02 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Tue, 8 Aug 2017 23:08:37 +0300 Message-Id: <1502222922-25821-3-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502222922-25821-1-git-send-email-volodymyr_babchuk@epam.com> References: <1502222922-25821-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.58] X-ClientProxiedBy: DB6PR0202CA0004.eurprd02.prod.outlook.com (2603:10a6:4:29::14) To HE1PR0301MB2139.eurprd03.prod.outlook.com (2603:10a6:3:21::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c8fba060-509f-4d4e-9b70-08d4de9953e5 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:HE1PR0301MB2139; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0301MB2139; 3:i6b2w+CqG69QHH8mXOlM7sp9Rdb77FBA2atKiV+3q8nh158xQ1PLUy1CUJSxFLzZMtFHSLz7hYlUseH7W0WF8bYwd4PgBzPKVLZbB3uV3RkzbSc4y6x7AgGVbZI4H0tgIkFUfLMBbZqV85u/vQMXNKmwc41qw/GUB/JToq15ueC+rdgS8aLRnhgKQczklOBXdyf+CTOifS5q4LWFknweASm0IEZ5IDtqSDBQ1TR3N710iSgr/wyU1/AcfZ8mKtov; 25:Urlun3jdaQ6e3m9SEjCBFmtACuSZYaoJDhARKmPTBykWjwtY7R6LPSp5rwij5Ii76rXi/r7AXA6V58rRdgP2P42r89UZTnHGbV+RSMAXkckGRSyKivapxayS31DlZ7ftrFrXJe4kjn9oMTanFrvf0f/opEgElKv4zU2r8sunJsKeG/OHva1lm3//eAeX1MxNQeXpOgJ2YVMZKXJkgMDrkkC/RZLDV2aiAqIrLetY8PiiMBHWcbLQruo4HB6A/WRd67hMU0IvpBp7G7T27AXGnG94IHFMfSwc/i1H0OYRaXf1g8qIi9h0eexqQknDXBZhfNTbG9nyL9pmp6RlzpeOPQ==; 31:YZoYsag0EHzI1Qjfbe3SAWpHgiAjcrY8X72ZtTrrD3Yfp/VwsdFTcAmSCpGFUJOwQpBhpASmWf9LdoKRxHXN3aHriWZnahyrrdgwW5KaCNnG1fm67kTGMHl5MUbRDHktDJqydP1OTgMJgnqNKi5O3fWIrI639X7mQmTQ3LXsFmYr/o2pe7ViU0KgBXAvwmvmv39jewMuPmtZqiL7MSdyZrHqzIiraXar9/6M3tNI/F4= X-MS-TrafficTypeDiagnostic: HE1PR0301MB2139: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0301MB2139; 20:w5a6AHzo6sRSJ4sb944VYCgC8ctJlvnKrzb717w5R6XV6D9yGqCLjQrVY8TZsdlK50QDvdi5mHBIOdVwdYmCRt9EUMyqVL7CSVKnE9MJeRlJ5KH1Is+0II1zrP0OHxDGdkO1U7LSCRyU8+f8zGZjbis6ZUAjqcIJAq+LM4e/M2zlV0x45coIIK2vMlDaH01/web1k/PDb6HiVTVJID+LPeTaaq8Op3qztf7WDX0xYqG9ifpl6S6un+MUzdIFa4ELNi7Xa5GKQyA4QxSNPr3EjNtjaeI+CzeMK5wwBRaB//N3Ix0MAoS1ybsayyZ+LnlHM3RDfN5HQhl+UwaWz9zGLcfGGbHmU9VNWkc8geV50b/TnZaY3jEZcpRk5pTGbDF/Fn48EZ28DYGcchzzxsgPt5sgsvKvub1BygsGgzIG/tuGLat7gQxgPbhofX5hGRvwkpq8cx9MTs1rSrfEZ7xDDVOtDx2jRLUSZyXpF1snQB+MPcIcB+3Vlaqxs6Y75Ziw; 4:btyd3Mo3FM2hEjpTSEtnUaGrOXmP521sdfQR3wd8oQEzkJM+Lv2PPr2XQFgDgHvUvKLVfRKNCdcGG9GdlQGbKo2ZF8X5OI2UOV8/ftYHsIZS5a+MtdTlm4cyEO/Tud+h2p3eX3qIQVH0sYy0omn5PFcIajYI8i3lB2FMcjLSf1YlhffYpSVgOnPY7uHq7BScEZyyDECd3HOilHEnpPMoFVFL9FYauUudR/Tmclq9xR1uRC53jhHumBJ0CI8pFMWm X-Exchange-Antispam-Report-Test: UriScan:; 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)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6041248)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0301MB2139; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0301MB2139; X-Forefront-PRVS: 03932714EB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(39410400002)(39850400002)(39400400002)(39840400002)(39450400003)(189002)(199003)(50986999)(72206003)(97736004)(36756003)(305945005)(50466002)(7736002)(189998001)(68736007)(50226002)(101416001)(5660300001)(76176999)(8676002)(81156014)(81166006)(2906002)(106356001)(105586002)(4326008)(7350300001)(66066001)(2361001)(8656003)(86362001)(47776003)(110136004)(38730400002)(478600001)(3846002)(5003940100001)(2351001)(2950100002)(6916009)(48376002)(80792005)(6666003)(33646002)(53936002)(42186005)(8666007)(122856001)(6116002)(54906002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0301MB2139; 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; HE1PR0301MB2139; 23:1d7MTm1y4B5dFgIPz52FyAMj0oPZ/QzCU+pr12S?= =?us-ascii?Q?BPegVnkRXiQ17HgnAwsqIEz5ZQNyzrebkMLItgMNjcONoGoqiYWETxpj4PDn?= =?us-ascii?Q?GebIW7eQjNjhsv4svWWI5smJrDe9y+P36v8wEf7ESZMYawSwCVEnDa4nbV/J?= =?us-ascii?Q?SnbEt8thxjFfPJi2lsVDa0K6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6KaiK48z/I3ElCSWWk047M+B16afidEabdyedUNKkKn+aus4smbAhalSyZ34v9gnJx34sBn2AFAJvMgxE2GCXBFOoJC/Oqa23zrHwH0huz+dMy90D5gYjWFXoe2SjXLYtAHho4mAlLo8llGmKQBLhVrmxEY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2017 20:09:07.7032 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0301MB2139 Cc: "Edgar E . Iglesias" , Volodymyr Babchuk , Julien Grall , Stefano Stabellini Subject: [Xen-devel] [PATCH 2/7] arm: make processor-specific functions from traps.c globaly visible 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 From: Volodymyr Babchuk The following list of functions: - advance_pc() - check_conditional_instr() - inject_undef_exception() - inject_iabt_exception() - inject_dabt_exception() - inject_vabt_exception() are now globaly visible. This change is needed becase we plan to handle SMCs in different file and handler code needs to alter state of a guest. Signed-off-by: Volodymyr Babchuk --- xen/arch/arm/traps.c | 16 ++++++---------- xen/include/asm-arm/processor.h | 11 +++++++++++ 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index ed78b36..0171c1c 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -616,8 +616,7 @@ static void inject_iabt64_exception(struct cpu_user_regs *regs, #endif -static void inject_undef_exception(struct cpu_user_regs *regs, - const union hsr hsr) +void inject_undef_exception(struct cpu_user_regs *regs, const union hsr hsr) { if ( is_32bit_domain(current->domain) ) inject_undef32_exception(regs); @@ -627,8 +626,7 @@ static void inject_undef_exception(struct cpu_user_regs *regs, #endif } -static void inject_iabt_exception(struct cpu_user_regs *regs, - register_t addr, +void inject_iabt_exception(struct cpu_user_regs *regs, register_t addr, int instr_len) { if ( is_32bit_domain(current->domain) ) @@ -639,8 +637,7 @@ static void inject_iabt_exception(struct cpu_user_regs *regs, #endif } -static void inject_dabt_exception(struct cpu_user_regs *regs, - register_t addr, +void inject_dabt_exception(struct cpu_user_regs *regs, register_t addr, int instr_len) { if ( is_32bit_domain(current->domain) ) @@ -652,7 +649,7 @@ static void inject_dabt_exception(struct cpu_user_regs *regs, } /* Inject a virtual Abort/SError into the guest. */ -static void inject_vabt_exception(struct cpu_user_regs *regs) +void inject_vabt_exception(struct cpu_user_regs *regs) { const union hsr hsr = { .bits = regs->hsr }; @@ -1706,8 +1703,7 @@ static const unsigned short cc_map[16] = { 0 /* NV */ }; -static int check_conditional_instr(struct cpu_user_regs *regs, - const union hsr hsr) +int check_conditional_instr(struct cpu_user_regs *regs, const union hsr hsr) { unsigned long cpsr, cpsr_cond; int cond; @@ -1752,7 +1748,7 @@ static int check_conditional_instr(struct cpu_user_regs *regs, return 1; } -static void advance_pc(struct cpu_user_regs *regs, const union hsr hsr) +void advance_pc(struct cpu_user_regs *regs, const union hsr hsr) { unsigned long itbits, cond, cpsr = regs->cpsr; diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h index 855ded1..6347048 100644 --- a/xen/include/asm-arm/processor.h +++ b/xen/include/asm-arm/processor.h @@ -686,6 +686,17 @@ void init_traps(void); void panic_PAR(uint64_t par); +void advance_pc(struct cpu_user_regs *regs, const union hsr hsr); + +int check_conditional_instr(struct cpu_user_regs *regs, const union hsr hsr); + +void inject_undef_exception(struct cpu_user_regs *regs, const union hsr hsr); +void inject_iabt_exception(struct cpu_user_regs *regs, register_t addr, + int instr_len); +void inject_dabt_exception(struct cpu_user_regs *regs, register_t addr, + int instr_len); +void inject_vabt_exception(struct cpu_user_regs *regs); + void show_execution_state(struct cpu_user_regs *regs); void show_registers(struct cpu_user_regs *regs); //#define dump_execution_state() run_in_exception_handler(show_execution_state)