From patchwork Tue Oct 10 15:52:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9996673 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 7996560216 for ; Tue, 10 Oct 2017 16:00:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A60C286AA for ; Tue, 10 Oct 2017 16:00:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64A8D28745; Tue, 10 Oct 2017 16:00:35 +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 C9F3A28761 for ; Tue, 10 Oct 2017 16:00: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 1e1wuz-0003hG-Te; Tue, 10 Oct 2017 15:58:05 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1wuy-0003gk-Un for xen-devel@lists.xen.org; Tue, 10 Oct 2017 15:58:05 +0000 Received: from [85.158.143.35] by server-8.bemta-6.messagelabs.com id 9F/EE-13910-C0EECD95; Tue, 10 Oct 2017 15:58:04 +0000 X-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server-8.tower-21.messagelabs.com!1507651083!76418423!1 X-Originating-IP: [40.107.3.73] 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 63578 invoked from network); 10 Oct 2017 15:58:03 -0000 Received: from mail-eopbgr30073.outbound.protection.outlook.com (HELO EUR03-AM5-obe.outbound.protection.outlook.com) (40.107.3.73) by server-8.tower-21.messagelabs.com with AES256-SHA256 encrypted SMTP; 10 Oct 2017 15:58:03 -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=VKQJu4bUNd4+CbcRUNmkErWyCdHjayEiePyvmHX4OnI=; b=B7tCFJS/linoXXqB1Xo7gOKHw6wuepKZLpBqM/+TEPmTg6EbfGemfpR+3mjQAtdndGFMNgvu07SxznjD4NfZpA4qBoixOoEGbXHVaPfAGt7fWiOI3ADHmF45tBg9IOxfUgAMTCYcD+rIItdO+HSvIawl3X6gs4o7B4U/msY9SrU= 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:59 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Tue, 10 Oct 2017 18:57:55 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Tue, 10 Oct 2017 18:52:51 +0300 Message-Id: <1507650771-16631-12-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: HE1PR07CA0008.eurprd07.prod.outlook.com (2603:10a6:7:67::18) To VI1PR0301MB2141.eurprd03.prod.outlook.com (2603:10a6:800:26::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6a85a4ae-05cb-4836-63b3-08d50ff7aef2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:VI1PR0301MB2141; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0301MB2141; 3:VFRuBngbt9m3f7oIj3qfms4jOH3xZXoXhxBZEq2iVFZ1XI4tMC1F7znmy/hwEiUMiE+vJ3z0FKEl6j+M/w9moptQT8QFEW6+FkN/Pf0IcX5rLD/2T2CWxhy/tzquKunw5dAYV9q13eUw/Um9gNmXWG9678yHj4icCafx36WHMx/pSDIycodvD/yEDqLBE2eWJ9w+sZ1JcMcM5+VxCN5OG73c9DyKSDmF+OP1hUcyGmgwpelH8dlVwyqACIwDnTf4; 25:wrNKoIUzkmGkP+XgUV6GD3Kxd4iKEKjVvWLZQMNibN97vPbvpaR06hq33b7l6CQ3ntd7DjKlTfoPANpJTiQahB5p2eUii2szfR7R0Hc8EbpUs82rAsFJRLrcP5fzowZ5YMuGUuFu5GZgfHj/3Lr2AbTIJT3b9WKK4cROZXda1Ox3yI1FaBph/TtpSCxMn02CJmW2qXi+NekojJcaewjjuKrxe/5R57zqn6B+TPFh+Od3w+v/9st0rSg72nCZYD6BuZbBG45v2l5Lmtxc4kWL4LTmbOVWBVsEEjYnwQIb6DL890FlNDH/ws2PHp8CMybwP1pXOa82G0m1veEckfqwvg==; 31:teI+/buFJH18u2btcsxJcqQR9pFl84WgfLurNvm+mQ4Gj0dKYB/gOLGF02Mp3TEAf3K3+Ca+EXHFVZNyelYWw0iAaLPg8v+jybGlubWz6Ka+kQx1L079j6rC7tMR5LHDBFoPJ/VKUrJGv63FZkuy+/9iRR2pUTJG9LrdOcZNGbLX8bGWqTot1lGktsI8kadS8x0V+qHO6baT5D6xedupJ/uKNS2rPFA/cTnp/6UxFIY= X-MS-TrafficTypeDiagnostic: VI1PR0301MB2141: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0301MB2141; 20:k4QGn35ooriwyIA+Z/siWMyBwkb6T89uQmkNx9bsbJqLZmzyBw+jqUuJ79FL8dHxaEF2X7GPvJZrks5veqG+M+Fn68qnM2RAsV86aUWHL/UBwOCp34t7+rIiyb384kPcx9sFsI48sLbw7IzJVPKOvfSSqhM45fZ1g6fhNdDwiAy/V57UTYccNk0MMRfeWmX761QkOyr2f87Nr0e0bqNtUlaGg62OLn9GSlqh7LhNvziztggvbP0HZgHlhDngUgvIO6jppZWiiJWFxdkftI9zKT2uwU/drUir6Pl95iCcRjcPX5xnKpHbGqFF1tO6h9jPDwWgUmRcfuwrAVjsOaYy6izlBfl2G8Rp2lgFeoMIISNPqfId2RMw6veNXlV9N0qGBIGhrxZFDCSH+Kfeao0OzlrQjfY+P94kntDij3Mj764tP8bBQrxUuGllvGjERFD0abAjwYl4KDJ3J9lSK0aimrNacrNsFxTbyGp2RLzTcJYjeICNu29GhpV6M1i525ZY; 4:G+pYsCfEj4eyfuLhuIIAlCNRQodiOhRWo5eInlKZclAedsOOZn6XBb6p0H4brIIokYW0zFj4MDqaUhycBe3wUpZ0ImN0meBdhQMHhJywhKI48alPYWfy2VOp0Q2DMvvq/wy7nE8F0RbAP9EBfsoo4eMnUoVxwIXWj+MjkLlPDosHqwuxdhaXyWjZQb7wrTSpflf3aZswwW8KFXFYYhTXobMmftNh7XFssNuOB+xORSI770TABXL0OELmn/7CBEX3ilqJh5QkDpVZp3ntxymsPtH42MS957YlZrFVzftu7WI5zM3eIVBTSx35BrkRd2x1VMXd8SKO2YLnd4qzj4fD9Q== 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)(346002)(376002)(189002)(199003)(8656003)(122856001)(8666007)(72206003)(6666003)(5003940100001)(54906003)(2906002)(68736007)(5660300001)(97736004)(316002)(7736002)(48376002)(86362001)(80792005)(36756003)(42186006)(189998001)(16586007)(2351001)(105586002)(106356001)(4326008)(6116002)(8936002)(2361001)(101416001)(50986999)(50466002)(81166006)(305945005)(53936002)(3846002)(33646002)(76176999)(6916009)(8676002)(81156014)(2950100002)(47776003)(50226002)(66066001)(478600001)(7416002); 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:6va3woKDj2GhU/P6uEELvNPFGTrHOZw9MGkQRR2?= =?us-ascii?Q?1JXVPVnf0kYYx8dfP6vJ527xr2vA5z/TgfyuQPlaXK/PR2vUO0Ls6LnBZ7XB?= =?us-ascii?Q?nu3puNrAGNI0/9Xuf9Sc4EWD3257H04wbUJyFzS+AM/zxMbVV/G0ozAt2dCs?= =?us-ascii?Q?2TnDInQQXByHZtfqO5aba0ZQoa1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pamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2017 15:57:59.5502 (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" , Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich , Volodymyr Babchuk Subject: [Xen-devel] [PATCH v8 11/11] public: add and enable XENFEAT_ARM_SMCCC_supported feature 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 feature indicates that hypervisor is compatible with ARM SMC calling convention. Previously hypervisor would inject an undefined instruction exception if an invalid SMC function were called or would crash a domain if an invalid HVC function were invoked. XENFEAT_ARM_SMCCC_supported feature means that it safe to invoke SMC/HVC calls that are compatible with SMC calling convention. Signed-off-by: Volodymyr Babchuk Acked-by: Julien Grall Acked-by: Jan Beulich --- xen/common/kernel.c | 3 +++ xen/include/public/features.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 94fdf5c..8d137c5 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -394,6 +394,9 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg) (1U << XENFEAT_auto_translated_physmap); if ( is_hardware_domain(d) ) fi.submap |= 1U << XENFEAT_dom0; +#ifdef CONFIG_ARM + fi.submap |= (1U << XENFEAT_ARM_SMCCC_supported); +#endif #ifdef CONFIG_X86 switch ( d->guest_type ) { diff --git a/xen/include/public/features.h b/xen/include/public/features.h index 2110b04..1a989b8 100644 --- a/xen/include/public/features.h +++ b/xen/include/public/features.h @@ -102,6 +102,9 @@ /* Guest can use XENMEMF_vnode to specify virtual node for memory op. */ #define XENFEAT_memory_op_vnode_supported 13 +/* arm: Hypervisor supports ARM SMC calling convention. */ +#define XENFEAT_ARM_SMCCC_supported 14 + #define XENFEAT_NR_SUBMAPS 1 #endif /* __XEN_PUBLIC_FEATURES_H__ */