From patchwork Wed Oct 4 21:00:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9985459 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 A07BD602B8 for ; Wed, 4 Oct 2017 21:03:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9266F28C22 for ; Wed, 4 Oct 2017 21:03:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8759328C24; Wed, 4 Oct 2017 21:03:42 +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 2760228C22 for ; Wed, 4 Oct 2017 21:03: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 1dzqna-0008CR-0z; Wed, 04 Oct 2017 21:01:46 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzqnY-0008Bq-LK for xen-devel@lists.xen.org; Wed, 04 Oct 2017 21:01:44 +0000 Received: from [85.158.137.68] by server-11.bemta-3.messagelabs.com id 08/48-01812-73C45D95; Wed, 04 Oct 2017 21:01:43 +0000 X-Brightm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chuk@epam.com X-Msg-Ref: server-14.tower-31.messagelabs.com!1507150901!117791402!1 X-Originating-IP: [40.107.4.46] 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 62406 invoked from network); 4 Oct 2017 21:01:42 -0000 Received: from mail-eopbgr40046.outbound.protection.outlook.com (HELO EUR03-DB5-obe.outbound.protection.outlook.com) (40.107.4.46) by server-14.tower-31.messagelabs.com with AES256-SHA256 encrypted SMTP; 4 Oct 2017 21:01:42 -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=dcpq6k/Iw1akFjiMRljK6uM/QSTyuoYS0UbIIwHEFbc=; b=Me/7wI235etatLxwFiY08fTNfpjj3sp0rKIK33w3o47ZeCQEhhwvei3BBymZlkKSM0sk40X9eiCXQ+5LTsTIK8APymxPIl9RbCoeCGMoMsCX2rSj9PRD9j2wd4zVxQKSxuDYaXwRSJm0gbrESuNXqC3FrTBU9rEp0c6G911nXqQ= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.53) by HE1PR0301MB2138.eurprd03.prod.outlook.com (2603:10a6:3:21::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:01:38 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Thu, 05 Oct 2017 00:01:33 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Thu, 5 Oct 2017 00:00:21 +0300 Message-Id: <1507150827-7858-6-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: VI1P189CA0020.EURP189.PROD.OUTLOOK.COM (2603:10a6:802:2a::33) To HE1PR0301MB2138.eurprd03.prod.outlook.com (2603:10a6:3:21::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 90275e66-c735-4350-c0f5-08d50b6b1b8b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:HE1PR0301MB2138; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0301MB2138; 3:cGJgkyHWEOb3QjoDQkg8rO0IKbMO9lBljnrX7COVV+S5pzdYRjUWagqM9aCyj1bpFEoDUg3EcB0lX9OQec0Vcj6Uy+uwvzlMS3E4veTik4flU2UYYfwu9P6EktZiT1by8Z/TrPvg0OnBCdi6wSy7MiB1On1D4QD9CIZdbHcN+RpQkmDWO4sPYcsCTqRRSvT3FhCj3ctsjhHLmbAzMPfIkAcXvXpECSg9KdB9+jHmBMLlNGJin+iqcstzM8EdO9gE; 25:QqbnVzcDewxOSVuoVAW7QwQ2ch5ldDRvhVRXCF3utot3FQWCHIsCIhIf9sx8p3P6qFcqmAr3DeJzgnTSlnAbePHJ7riQ4EzLcrEZfgmyBFHsS6kBf6LP317650jYCTUlikNeeqPcCBXeAHXNDZtQ2ElzIifP04BEcM7z/2iQE5qn4vojpkz9us447AdeB6Ua1MvQdREVkMMLctQaEMsyJg2uUpwuHWJ7AU7g80cUWcmYeIccsw3VQa5EdAB4eEIoVIbfJDPVOVqtlQa4dUPyDfBVjfSDrV907p1SLL1Q9r7PFBowEZkEHbTd/KJrvOJRHsPC/0QAYTuIPnmA2P7HWA==; 31:HGQ60y8haXvqu2YT4WJN+0yVda6q2OugXU1s/AYupdLt31MS0c18H+ig8U1DsqQTMmdeJacKwV/FcWhgQazEHUfVvembh7hz8gkKHWYVjfHyFPT8qUbNZ+pbD+KSj1grc4zQr77c01BSuRtkVMLKBDu2hgQemkoejrYia/bIZ+VEomVQht1tZZgTNiGVSfbDIai9kqW7rE+sD/vJhVWTSrjS5wYbG6Iaej+31dTTicY= X-MS-TrafficTypeDiagnostic: HE1PR0301MB2138: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0301MB2138; 20:qpmTzDk3d4PKubTjV/wExj/es2Yd1a/2OJR+daTEW7Kt3HlnskpBSnGKw4Fi11+PjAhNFWEuAwj6PJEtzjU97rAzPDPrFMKB+ULQbHzU1YK7rEgxqNdJVnXW0No4adxV8XR0eVlXcTmrKQhqwWhHdNrgLqDGDydWCw8iKtUFfF7+0oOs59DgzBAjLTFtTzsRB04E60XfY7u6hgvoneLq9Xoo7URf7aStY9YuYtGI+lYC++fjjpRBq4QvMSZHQPNSDAQBnLhcETTpxJNYlMlJKfBrjhzU6i0fDNqv/FLHz8vJDw+PXp3YdTcNaz7BeFYiJbf1dbaEsx8g+B8Y1QNNakCXFxbL/640GIWMhBIQBRATvx6clyjbEDm/GcQlkPwzuhByihTHlSCQei+Mo/ZBYOSjob3WHi0kzLP06MH6cEwSGTfJw37DCTuWAHcSdW2WS3+f1tjS5UxzO6is3GuBA8rDoLHku4X7o82eL4sDYG/KNOjl5k50piVbiq2rS9M+; 4:cz/XKN1t+Z4lL792169/cGFaPRvEGh7IhH/lu80PT3FxcVtZ20URGsF77T0uc229h+5gKMs5Mu1YBZzshRm+F0JNxPZW0cO5sqTnmUOk4hiLX5UnuRz3htNhu1Y2MtXl/FYtXmc5eH+Q+mfj1SuA7d9yRAcX7fHNfIu3nPSFqHhkl3vq4SOXuAHmqXzG8fhW9L6Fe0kZ62Ti0kQWQlzOv2K009fdKbfo9vCueJiZFtAm2qlmM8XtTdBEBJO7TnEYSK0yNyEUUI96pILrWtPTWu7Tiq96hFBLjLo8YOyA17hUlhStXD7gW3Dsz/XQ+fh0nNPkUBIBT0xl0yAKnQ3rZQ== X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(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)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0301MB2138; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0301MB2138; X-Forefront-PRVS: 0450A714CB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39860400002)(346002)(189002)(199003)(305945005)(316002)(5003940100001)(42186006)(53936002)(2906002)(54906003)(47776003)(122856001)(2351001)(97736004)(7736002)(68736007)(33646002)(36756003)(76176999)(101416001)(2361001)(8936002)(50986999)(189998001)(2950100002)(106356001)(50226002)(6666003)(86362001)(6116002)(105586002)(3846002)(16586007)(6916009)(8656003)(4326008)(50466002)(5660300001)(72206003)(8676002)(48376002)(81166006)(478600001)(81156014)(8666007)(66066001)(80792005)(14773001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0301MB2138; 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; HE1PR0301MB2138; 23:A+VQVdGfHOlUVTNE4CPPRoBMH8st7uYUFra65NP?= =?us-ascii?Q?q375wXZw27P902F1Msr0zh4xh7FJc5gwUZz29m1DFpvFKz7TjcsMMWzI9aKx?= =?us-ascii?Q?FQAWIXWik1wMmZ6onxbCK5KWl4AsqjvgvTEqwdMw+2pR5LYTqN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nDMK3TEg0wymRqKF1aJBsPgod1RgHUBiI7IOtBgHZ0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2017 21:01:38.8405 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0301MB2138 Cc: "Edgar E . Iglesias" , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Subject: [Xen-devel] [PATCH v7 05/11] arm: processor.h: add definition for immediate value mask 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 This patch defines HSR_XXC_IMM_MASK. It can be used to extract immediate value for trapped HVC32, HVC64, SMC64, SVC32, SVC64 instructions, as described in the ARM ARM (ARM DDI 0487B.a pages D7-2270, D7-2272). Signed-off-by: Volodymyr Babchuk Acked-by: Julien Grall --- xen/include/asm-arm/processor.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h index cd92176..65eb107 100644 --- a/xen/include/asm-arm/processor.h +++ b/xen/include/asm-arm/processor.h @@ -673,6 +673,9 @@ union hsr { HSR_SYSREG_CRN_MASK|HSR_SYSREG_CRM_MASK|\ HSR_SYSREG_OP2_MASK) +/* HSR.EC == HSR_{HVC32, HVC64, SMC64, SVC32, SVC64} */ +#define HSR_XXC_IMM_MASK (0xffff) + /* Physical Address Register */ #define PAR_F (_AC(1,U)<<0)