From patchwork Thu Sep 21 20:00:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9964789 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 7207D6020C for ; Thu, 21 Sep 2017 20:03:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 647BB205A4 for ; Thu, 21 Sep 2017 20:03:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5955829698; Thu, 21 Sep 2017 20:03:40 +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 D802B205A4 for ; Thu, 21 Sep 2017 20:03:39 +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 1dv7fC-0007sg-3o; Thu, 21 Sep 2017 20:01:34 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dv7fA-0007r0-Oc for xen-devel@lists.xen.org; Thu, 21 Sep 2017 20:01:32 +0000 Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id BD/83-27708-B9A14C95; Thu, 21 Sep 2017 20:01:31 +0000 X-Brightm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: server-4.tower-206.messagelabs.com!1506024090!112657743!1 X-Originating-IP: [40.107.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 63090 invoked from network); 21 Sep 2017 20:01:30 -0000 Received: from mail-eopbgr00067.outbound.protection.outlook.com (HELO EUR02-AM5-obe.outbound.protection.outlook.com) (40.107.0.67) by server-4.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 21 Sep 2017 20:01:30 -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=YMi9R+mZGjSAmH978kuzCUowXSyE3bIgtld2IdKBudk=; b=DwP0WGa+Tlh1I8OaZ2lAtUdGNwTBiNR6x+jStvNU6VQbsMf3SFYAC8A3auMvAHWCGWwQo1kKsZLDw1ShLkujXeP8en/BH5HmVQppHLlj4f2fZpsFY3TNeF/We1B9X8vivvzCJYV5nL1Q5ItCJ+kekZ3BP/+fgKkwYiJ6YBwisIE= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.56) by AM4PR0301MB2130.eurprd03.prod.outlook.com (2603:10a6:200:4d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Thu, 21 Sep 2017 20:01:27 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Thu, 21 Sep 2017 23:01:22 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Thu, 21 Sep 2017 23:00:04 +0300 Message-Id: <1506024004-8615-11-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506024004-8615-1-git-send-email-volodymyr_babchuk@epam.com> References: <1506024004-8615-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.56] X-ClientProxiedBy: HE1PR0102CA0003.eurprd01.prod.exchangelabs.com (2603:10a6:7:14::16) To AM4PR0301MB2130.eurprd03.prod.outlook.com (2603:10a6:200:4d::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 17df5d83-14c6-457c-8213-08d5012b8c04 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:AM4PR0301MB2130; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0301MB2130; 3:m422W2hQ5P1ng++40mpoIh+F9R1XDZEeUGvF20K0+a1K6G5S0MDQ8exFgZZ+puRUGjoE0yVtWnadvoBE+fPK4rxUdVB6rvwBS5A0kHW2VX+o1K6cXUgTJWmha8Z3/lIbdCfOdBo6GoDMzYSEDo+mQQfY4LiqldAL8Cx8/5MXCVY5svrVNyzyks8At1D8RO6MZFHUlDNik+owOPaE1lttwqB0foa8TS2YuF+VE4YxL5Btshvd+eUEQbiAGnz1XNeC; 25:cy0zL+Atb6Z9WqcwM/AxFM0KnloSl365llTfFnbxTTwZPPfVIY/F/j70DOB5D1PAW5uGLK5wRaxmwtaYb6MEyvMBK/hJBysT6zkSBVHXT3tgGu+gVVco+puC/d5ZFd3yE7izbuYBV4/2qTChiihVPWC2qAPBtF2mFjvLC5J4jSV2pq97Pvee01o5StS35idyT8x0kHFYGUuT7KCie39PDnXIxPMLLRYa5M5XN2VqUHFBgbKTr9dzU28GEb3HagW97kWAwsXpa/BohkAEZm9NelW5as8aM04R5pkJ1sXL0QjuGxrLM1GE7KHeB1BHfdHXSFTJfRDWDsXl8NlZNsR2aQ==; 31:YYcR4t+qYSzonyxt86VVKkID/8z71u+x6XDldJzuIWmm+zt82QXYIEBWCFiOgXU8+B35dn0K3IY9x3p/CoVMx1Gc//ji82FeEvjBCEEM8KyTYoTclCrIQjxxDTjJvzR8quONNGfaJSBVhIMzGwPISh6GvYS4/tXNQ/B1D4/sd37WSOkHMxe/7Gq+jVQ0n8rYWs6CUc82Ml2MKqnNDUUi31lzovRb6CRHCA5QKaBa1Ag= X-MS-TrafficTypeDiagnostic: AM4PR0301MB2130: X-Microsoft-Exchange-Diagnostics: 1; AM4PR0301MB2130; 20:gOoGkR0F6wUrP6KKO367+Jg5nt3b6ENy13Vnzf5Q198PCbvS5VR7e/2ERhaJKZqiGDmjwPPC9HWMFIwYXqD7VfANWhww+76iyPGSpw54SffsVJ2Qh0PgkIVN79tPsjfztM8WVn4ph0mKRrG4mr++jh1hhd0qoA88rG541CfDUBC2da9QGyglEPQBg+sXcY3JAGLT9FtLBAREVdzSoUMSv/LL4sfpnqI+4pehdByaTiGiNgSC9Y8C5hr98lowtZza10D+ShmNBkYh/WSUp7JaFEFSUluNUkLG4R6lD5VPCwPv1+sP+k1+UOFmeBA4t1m6/HiGZcg2SjGNH1KoVHIa+yrb1AyigPmvvAt/CqRqkGKwTUH6EM8psEyVpHvwr2MfoOr7vaOghHL13AibziiFPSmrvHdeJ/PPXZJrYl5PkRY66BZbl9jXll4MYcQjhMxvZeKZahltifVLjaOnGWnsfb8RreTZZhFZcgBXbFEfmmF1tXSWiqPuIGXmq6HKKCwK; 4:o4+Xm6YiRE59L9aSf15KPyLjhKZDR/ZO9HkuXCR8Y0fy2ppT6rQR4kYFzuMB9E+t9ceICWwFYeF2p0Ug7rs4I0glawCne1ELPOO1MRlkyaxT68pzX4kux2WBuarHhkhmydpRqu9ILZSsSjgVyouTIg7GUUl5JJLh4oTbtruUFMiMwit/majEg+yW3saZDzol6ybcD9GLWW8LLinHWGp0vijW3KL+epymyN8yX6+XXBFffyg9VR1k6QurlzYXSziQ9Mg3k4JgYIjCnIRbGgQVU9Xmf5d8UXpc0IDONxg4y6c= 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)(2401047)(5005006)(8121501046)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM4PR0301MB2130; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM4PR0301MB2130; X-Forefront-PRVS: 04371797A5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(376002)(39830400002)(346002)(189002)(199003)(81166006)(50986999)(6916009)(81156014)(8676002)(4326008)(8656003)(80792005)(76176999)(2950100002)(86362001)(5003940100001)(33646002)(2351001)(105586002)(2361001)(106356001)(7416002)(7736002)(122856001)(97736004)(305945005)(36756003)(53936002)(6666003)(101416001)(478600001)(6116002)(3846002)(68736007)(5660300001)(50466002)(54906003)(16586007)(50226002)(316002)(48376002)(42186006)(72206003)(8666007)(66066001)(189998001)(47776003)(7350300001)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB2130; 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; AM4PR0301MB2130; 23:FBF8iSSVnivI9q0a4D+KmCyT9PYlOhkttKlgEVA?= =?us-ascii?Q?AB14H35Jb5z2d0U48zcuvX1MyVRAq5guEBW1ArJxc8lt5DR8OFVPQm9+Cjjl?= =?us-ascii?Q?Y0wenMc4yXho9bss8/2ZpxJ124Uyp6h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ADnIWjqGnhgSC/GH2FyUYZxMK935hcb07J+TlUxRbhXpUpDL6nvKCaJB1k6aYfsCGR1knRR9oEKsSryyl9LtElmNY1x3vwtnc9s6E2chljNdUExcd4Cj6UriTkmCu50cDH2vefJW6YZg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2017 20:01:27.3990 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB2130 Cc: "Edgar E . Iglesias" , Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich , Volodymyr Babchuk Subject: [Xen-devel] [PATCH v6 10/10] 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 --- 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__ */