From patchwork Tue Oct 10 15:52:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9996661 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 232F460216 for ; Tue, 10 Oct 2017 15:59:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15290204FB for ; Tue, 10 Oct 2017 15:59:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0991C24B5B; Tue, 10 Oct 2017 15:59:34 +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 82689204FB for ; Tue, 10 Oct 2017 15:59:33 +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 1e1wuG-0003Nd-5E; Tue, 10 Oct 2017 15:57:20 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1wuF-0003NI-MB for xen-devel@lists.xen.org; Tue, 10 Oct 2017 15:57:19 +0000 Received: from [85.158.143.35] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-2.bemta-6.messagelabs.com id 0E/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PR8RtwlqP/AMKAu/2aAwAA X-Env-Sender: Volodymyr_Babchuk@epam.com X-Msg-Ref: server-8.tower-21.messagelabs.com!1507651036!76418300!1 X-Originating-IP: [40.107.3.79] 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 58587 invoked from network); 10 Oct 2017 15:57:16 -0000 Received: from mail-eopbgr30079.outbound.protection.outlook.com (HELO EUR03-AM5-obe.outbound.protection.outlook.com) (40.107.3.79) by server-8.tower-21.messagelabs.com with AES256-SHA256 encrypted SMTP; 10 Oct 2017 15:57:16 -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=OnNdc5MWt8GWtIB1vzVqkRwGkpmH8/NQMjDUlKWMD6iNgh9oYPEXoNiAjuKHzfx3FOwuD/naG4ysnYaapUjPDHnkm/p0pBhwEVPQU3eeL5lbjIx+UbL3SjdFhblgwPGoDRW8lyecWGTtK8lIIHn9DL9jJkHGqCVYl7xKcW/jrQQ= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.56) by VI1PR0301MB2141.eurprd03.prod.outlook.com (2603:10a6:800:26::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 10 Oct 2017 15:57:14 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Tue, 10 Oct 2017 18:57:10 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Tue, 10 Oct 2017 18:52:45 +0300 Message-Id: <1507650771-16631-6-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507650771-16631-1-git-send-email-volodymyr_babchuk@epam.com> References: <1507650771-16631-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.56] X-ClientProxiedBy: VI1PR0501CA0021.eurprd05.prod.outlook.com (2603:10a6:800:92::31) To VI1PR0301MB2141.eurprd03.prod.outlook.com (2603:10a6:800:26::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 654e5e80-3464-4b96-1fa3-08d50ff7936d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:VI1PR0301MB2141; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0301MB2141; 3:2NBQupE8RZSD+vUjKdzBgeca5S+DkySodV0njlUFevdJq4rtbqNrtqsodWp/i0pW0KcgKPl+qZtXyQ+hAvE6g248JOSrKv78o5VhY+0WCfj9wdAyMqQ73Il+YjM07I3c1Tl0xHlOu0Hl+qvsoX17u3gkxI22DQsdu8x6Gt1ic0KkVY7oBtcr+cozsdWoIePMdTCTHRWn1z9/Pmytpa8yYZjcwLgCa3ZmKO5rmKpmdqREAxFcu1SiuU9oHLPEYeKE; 25:LyJ5eye2GLRooTOCqjRiGKX0aIRc+aK+P9wf5cNV0Tw/6gSWJm3n07j3zbhNpUiZlaI4ApZGikoaskdkLu8SYThqxz3Pvi85XTJfAiuDEpZdmiqx1f6fyz59SABlU+/tXV8bhTFZklps3rPPzQJds3Oorihivx3lwb0e6W2ctXfWO2nega2iz9yAiG+UebWJMZNlpFsEP7lxF5YR3IE/P6u7ypcu80iJoBt7UmA+nTFiJEmNWScN/RwPPqzY6GVIbyuzeVmAV3XZW90P2E/YlrqN2TQNebvS0xVywKSVu3v/uJmEDT7pRMoTEWFI/15t62UDxoFFZoR0ZWhngufnSw==; 31:kT74NU8wUj5qoJccS0U9GLaiekU0SUelzk60Rw/S11Fkwk5g0cBfeaHW8hpGAe7eNogplQXcRVDlUfhAMHdyqFSWuIfHg6VuOWacQfTtvpBRGZfOv2EkYBsqhKvrc3CFClPmX/3MILB1xUxHgX5py76BEeGSNF8TttJhmDxGxFoJ5Lehs58esgja7FahKpp7EkGOLStqU6MzKvR4OvPSjbELhKyGVF7a4m1AnfairVw= X-MS-TrafficTypeDiagnostic: VI1PR0301MB2141: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0301MB2141; 20:V1DFTd7uoXdBX39/ywHxK/hF+qeI+KiB0r1/nOvpxfuru2TBWpaGAVzVFuM0T+nDR3KuHlIX/2BuvYG50zytG/TwTU6sBon0S8m8PJ5CHzdGKw9U4CALulhThPLXibzbY4A8lajJD95D9Sm/mbjAXZbYTLxjJqOgKzwKZbOiUdBWM4Qa7vT0VYOcKIlsGfD/QSxnkPqu2+XPLhFbyqjjyHWnt8uXgiNJDHgszwahxubWHxkdbMMu5ClrgUzq5xdtnSbXjBZQgxiJUTd5eB2SVpgdQxzj6YxZmSsxWdHUia4pMTkvfgjkl12mb3XksL6YkypH9r7YXX2wQ8tkbHiv4gZ1A51JgmoNPF7BBDmbuaPS06pZ3VHGitP6vh/afut3QvBG05aTjHdGAS6mf6KQeCWRGuVABS9i9+snK8qrfwcSUItXrPEW52Ro5tJ5k5UD1ezwmUJDJoDR4hmoWaR6EwuUFTh619Wd22M49iaGaBcje22fy30aTKM1GbETwrkH; 4:AqpOUVqzvNiFHYZCz1tVKN6P+ee6cwTF0xaaz7qAsHw5id2IFWXfCHunhyJhN/2RhNmFqontVMCXlGYCEd1gi4nmK1qmSS5s79i41DfkALZ0IRbKOPfCZmtBgaF82kcma8uidW+qd+XtWFleL6s7bpRQOfskeFlCTf6OTo5IQgqyQlNL+/huvQPCRv8bdWfqs7/uBmfAQGw/dd81/zDURBX8u4p5PfBqmtGzyA0eg9DtnsIq11yF8InuyE72pctZKQKbv1B2grC3Wm7l/GAJbHEnxM8vJAxxxAwifBj0rvsb8eVzsbgPgLzcdyF+so9EiytY6juHqKNhW/Z8SiV/7w== 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)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6041248)(20161123560025)(20161123562025)(20161123558100)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0301MB2141; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0301MB2141; X-Forefront-PRVS: 04569283F9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(189002)(199003)(50466002)(53936002)(305945005)(81166006)(50986999)(33646002)(3846002)(76176999)(106356001)(105586002)(2351001)(8936002)(2361001)(6116002)(101416001)(4326008)(50226002)(47776003)(2950100002)(478600001)(66066001)(81156014)(6916009)(8676002)(6666003)(72206003)(5660300001)(54906003)(5003940100001)(68736007)(2906002)(122856001)(8656003)(8666007)(80792005)(189998001)(36756003)(48376002)(86362001)(42186006)(16586007)(316002)(97736004)(7736002)(14773001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0301MB2141; 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; VI1PR0301MB2141; 23:VyOaYabA9MsFJ61Ac8Ohn6ZzH/ocJnHziIvPSxb?= =?us-ascii?Q?nTshvnOvrezf3AqeRRW51IYYhWbe6CcZQLZ5Ra0lDyrbQRIIwEJsraLM5CyA?= =?us-ascii?Q?o/RmqPtLC1GcfsqZb4tyyxDnSnNMifa4lrlIzIsqHm0jDNPUipRVxaRIsXqA?= =?us-ascii?Q?DyCOOzy6TFmVY53npjvd2J3o35VCQtFV/wCA1MThV+sgP1l7e3t98yYmqzQT?= =?us-ascii?Q?Xmn6kH19JnCad9G5JxsyODPpfiwXqRTNrxn3bMa5eLHEzG5ByL5W/56OjRCE?= =?us-ascii?Q?LTMXGRA4wVuV/fmXSbSaFfYW6YPff2BL/l4bc9keFU5oPmZHxOLM8A/EUCCS?= =?us-ascii?Q?1alkv3vnC/T/2Ys8F9xLbGCKaQwDTeh52qK2YLBatP7jN8aBDxfpjquYVQJm?= =?us-ascii?Q?ug1TGc8xvuaKaNqClZ+dk1iqLePDmp8F9omU1LlosQgG5w68FaTstgTpIl/R?= =?us-ascii?Q?CmhYbCWACHB5mKz0goYv8vsM/0SYKaPg+3hYas5HuORf2HQvLvO9/9zv2oVx?= =?us-ascii?Q?GX2psTPPStuTAPwSMKQ0EoLsVAJHz9x9oxoYcdJgtZjR0PXzRudxPfu6AIdu?= =?us-ascii?Q?AkRwfE7DtvYUzozQTIfBnnqin7OOD0uJh02lQSKPbqxwCwSxKX13cYLElNJ5?= =?us-ascii?Q?CJSmwK+GO+WSm31yzd5h5viUgged9/FDX2bHpHlxTm2P+qUtyd12i1w3ITGZ?= =?us-ascii?Q?ubMuG1UZTRgF5TAxsQhdPMrlyLbe/t1qd5SBMwywys8OV6NWoaJZVI39MEMf?= =?us-ascii?Q?SLKR1V9vLK/wZ80zL89hJtdH2nMw4kPi3uB71vuUACtNF83t717geD12M0re?= =?us-ascii?Q?C5WVDZNQscc6RlZ7jU99RvvD8tRrebPIqM1LEGUx7erWnSgRYyR9iM1dYJUf?= =?us-ascii?Q?uHn3y5+44aiyKSPctgOY5ySINP1JbUrGnggRtkXdwL7EovyvJxJba1dux2uD?= =?us-ascii?Q?A9Ncy3BEIwrOvs0EHNcRH0wbNwC3F1S6BqyZqDN379/ToOQOaWftcynVkzh2?= =?us-ascii?Q?K7CriwkSOda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uzzo9rsYohCR5NWviR1coXKJRA2c0MJrQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2017 15:57:14.4096 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0301MB2141 Cc: "Edgar E . Iglesias" , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Subject: [Xen-devel] [PATCH v8 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)