From patchwork Thu Aug 31 20:09:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9932809 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 6E4D260362 for ; Thu, 31 Aug 2017 20:13:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61A9C1FF13 for ; Thu, 31 Aug 2017 20:13:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54BD11FF26; Thu, 31 Aug 2017 20:13:06 +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 D00771FF13 for ; Thu, 31 Aug 2017 20:13:05 +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 1dnVnu-0000cu-PW; Thu, 31 Aug 2017 20:11:06 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnVnt-0000cS-UG for xen-devel@lists.xen.org; Thu, 31 Aug 2017 20:11:06 +0000 Received: from [193.109.254.147] by server-2.bemta-6.messagelabs.com id 37/01-03128-95D68A95; Thu, 31 Aug 2017 20:11:05 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1WSa0gUURTHvTP7GG1HxtXwtKnhQg/ykVaUkmD 5yYxKzAoj09EmZ2lXt521jAgsA9lVS40yU3LzUUuYwhIayn5Isc1XYqUpgZSJmpixrpZiUDOO mt1P59zf/3//58IhcKVTqiKYHCNjyKS1apmHhN2FnQo5rbMmhTXaDkTUOmskB1FsR+sSFo/OS DWZaVk5qVL245v7mL5LkdOyMIvloloPM/IgJNQNHMrzKjAzcicQdRZsL0xIAEqqGIOv+Xm4AJ RUOpT+mkdCLaP2QkNVn1yofajNMOh6v2zAqW4cWpt7lg3eVCIsTVbxIoKP2ApWq7dwTVJH4MF E+7IXqAAYfmvCBYk7f29+fEKMioOSR3dlotwLOsvHJEKNUwCvJidx0RoI92yNMiEWqDIE3bdf Y6J5O9iXpldE/tDRWykR66MwUjCDiYYBDOp7FiVikycHU6kLiapgKCyYQyKYkMHo+PQKiATnw oJMGBUoPVT0B4iaISk4PlVLRY0ffPnWsBJRJYVWl0kqzpQKM3+WVkCnAszmXlxsTHKoLuiSFa NtD9f99uG631oQ9gzt4BjDZcYQEh4WmmbQZLBGHa3R8t2+UB3DcXQGo6XTuND0LJ0N8avgxp+ XyPHjXBvaRGDqjeS149YkpWda1vmrLM2xKYZsLcO1IT+CUAPZdZFnXgYmg8m5oNHy+7SKgVCo fchxAZOcntZxmgwRdaFAlS+5KABKAGx25pptdRPfIX+VN4n4QZQKPWPQaYz/8ynkSyA1r9Dyr yg0mca116f4YIwPTo6rE4KN9D+kykXHek12y1xU+HVVmcW+P+gw3pRXOVvn2R90JSG+5nmZYz SlIXmwsD074Yl3z4Y7Lvu8b9GI9fOUM/KS82a2mXArcQRH1QTWN+9h3ROH8pueBnwwHmrBVVt m9NEt0cEzWnkfcUtrHxiOjYmSBxUXRbC/Q09aJstjxmy7O8nvP0m1hGPp8J24gaP/AjMip9qE AwAA X-Env-Sender: Volodymyr_Babchuk@epam.com X-Msg-Ref: server-2.tower-27.messagelabs.com!1504210263!54884866!1 X-Originating-IP: [104.47.2.86] 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 58603 invoked from network); 31 Aug 2017 20:11:03 -0000 Received: from mail-db5eur01on0086.outbound.protection.outlook.com (HELO EUR01-DB5-obe.outbound.protection.outlook.com) (104.47.2.86) by server-2.tower-27.messagelabs.com with AES256-SHA256 encrypted SMTP; 31 Aug 2017 20:11: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=xqu/Um+wSeYocWzmVL+k4QXjGUf3EVynBh6xeNzXMsw=; b=PJT8n8wAmEBMeOxazkOQERxc//b0AP/3wTyWAG+J+ryi/EDYDj/CK4MmONrAJ1T/RKvKE6TKm+8T8zIw3fTASo9CopNg+XecJGsnnGT0ygOHZLtgZj2FcIdQbbMC3lP3+MNrzEV6L9UotE9fGP3Gav7AkuZp1GccDxhivqIZXiI= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.51) by VI1PR0301MB2144.eurprd03.prod.outlook.com (2603:10a6:800:26::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Thu, 31 Aug 2017 20:10:58 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Thu, 31 Aug 2017 23:10:55 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Thu, 31 Aug 2017 23:09:32 +0300 Message-Id: <1504210172-27234-11-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504210172-27234-1-git-send-email-volodymyr_babchuk@epam.com> References: <1504210172-27234-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.51] X-ClientProxiedBy: DB6PR0801CA0045.eurprd08.prod.outlook.com (2603:10a6:4:2b::13) To VI1PR0301MB2144.eurprd03.prod.outlook.com (2603:10a6:800:26::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a34a4019-6be8-4c5f-669c-08d4f0ac65e4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:VI1PR0301MB2144; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0301MB2144; 3:Mn8E36b3rntG8XjYr+ee9qkt40Wvv7M3KeePxABxmUjNVAyXJIgYnAjzUF0x5LIiOxuSFXfod0Zn8oGhfbBlqu7dLLcvJEF3QUc2TIVZ2D6iump8HwUeuc8mxIJgSv38Jt7h9yjJgNx52Uuy0rXLghv1eA7B6CPlfvB0lu+E2Pk8G86vvQy44OsooFDgVdAhCLo5yMjUj/T7uCZJRSUhuWhirgGDBKewz568kZfWwq1DPTpEdZrwA7+zCQW/t1vy; 25:we3szAov71YJXGxXgYq2W2GDztPi04Ad7Hns4585DaxzUUzWqhdp1fqPlDjLr8Ccjziu9DYYqtdX/y7ba5mnn5gHewTPw7DhfILkys8BP3pkQ5Ur8CqqcXRlCwhmRDogkcHOfYGEpIHNWuK8jm9vrJ7zJOEd7iE7Q5PDkV8dyLPgGz18kAHfQQsZPgt46gETVS+tFKTCbsiUspIJr+sA+ZXZf1Jd4njWtDrmQpf7u1Mcz2n/GHh2VpLDBNiq29ubuGwJ8+CbY+Tp+elXmQGEzlTJTRv6R2ZPa1i673w0QNrlD0iByAwSE9FFQY40wxInY9kAopnbiubwnhckZKkCKg==; 31:p19zTHKHp8oyKi77FoAlngJF6GbNDr/aRRS4ALBsLIBEqAVZNLnCJt+ymMvH0leshf9Z1p3Wf0kJdIX9gCRaQ4qojiWewd4Y8vlRFBRjYkQpJx1KoxaFBi/N5FMSd1POmG8lF7m6mU524dPE102WMZuivIqkbmUdKG2wJFnaF3ShuxmWQyn5CKh1tfnDmIjwWqy57TpZXFEnWOe/UgJgfC0gYpUq83O2bV7HOxWPhPA= X-MS-TrafficTypeDiagnostic: VI1PR0301MB2144: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0301MB2144; 20:t5lLwuYEAuKMSfD6+QC+5uzifFEfhd/ZEIUfjk+h3J4LOn5IwsJRFuU2AskmWlGiQlJ6R10z9iS/fCJEwRVKy/DYhQhIXYBRnMW9QRKsdCok7VMq1mlhk7URuiz391NXeZazWvHQ9GjLcAtakjXzYrEnitKlzI/x25+sfs+/MGxlI6/jmZWGIeusi5Jqr22x7E4Nj0npMsksI9LUXjwDJ3kw7wutKz5iRgyCDXwgKlMORQFKc/0lxs363liGJFHdmsw9Vxb/hkFeCmtxxrXFFnTuwhq5Q2jSgoNokuct46NOniPBgBB+J7jKAkaMirkoMa/jchmWhcW8aiBznsG4TCuIXA6Zl5hhtbU+O0ZdQ/8mRmUqgbvW+GgRlTK4NuxT66x3rRkP3bjJ5AYbb5mYrsvS05qwkxO1Shh5JB39AdM5MNvqykFjfQ14t72qY0FSExu3cc8juNEMltUqjRDzgOevnsGM/hgYvsuUuixcvBh9Iku28xteLwWonEARrdBM; 4:QtMQ0JroyUiLf+NXV3FO2cnQmZP8tgOsaysGInDyqi/Uq6s/chs98qCsl2/TVudILbEKcYxzIafQ7yw741C3RWIKW2kH6UMZpn3wzPNEey8Y7D1f3onjTPZvbzquJcahUQi/WnxA334PBclNS2B0jy7QIxO6JI5pCnyJkUkOrNmTA1WItuSYKd6bysPHQd3k89qfNTbiC0Qp1ehJjxjju212P07zau1vk+1xxMgA/kiwkrcNPVEz8aWyINKc0NrXPE01JQzrn+ur7vZp007kZJ9bgxFUiO5yj1FP5S9Kph0= 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)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6041248)(20161123560025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0301MB2144; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0301MB2144; X-Forefront-PRVS: 04163EF38A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(199003)(189002)(7416002)(76176999)(81156014)(53936002)(81166006)(48376002)(8676002)(42186005)(50986999)(7736002)(5660300001)(72206003)(8656003)(105586002)(7350300001)(6666003)(36756003)(122856001)(47776003)(2351001)(8666007)(54906002)(106356001)(50226002)(101416001)(33646002)(2950100002)(68736007)(6916009)(66066001)(2361001)(50466002)(110136004)(3846002)(2906002)(97736004)(305945005)(4326008)(80792005)(478600001)(5003940100001)(6116002)(189998001)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0301MB2144; H:EPUAKYIW2556.kyiv.epam.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; VI1PR0301MB2144; 23:vYe6aaVupkx7hmSMnONy7UxAEGHwH9SD2oblbs+?= =?us-ascii?Q?fLy79ZDK1O+bfCMmWznnAf3Xy5erCLID8RjduRHF0DDm7ynLriyoA1NzzE4r?= =?us-ascii?Q?exWJdI1tuL38NNXjA9YiHvGJoSfE+GSRUpjFj3Nxd1aMRYtnUxRCIx8eruOh?= =?us-ascii?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LIshdb0k= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2017 20:10:58.6528 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0301MB2144 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 v5 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 ce7cb8a..18c4d51 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -332,6 +332,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__ */