From patchwork Wed Oct 4 21:00:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9985473 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 7FF20602B8 for ; Wed, 4 Oct 2017 21:04:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7120127E5A for ; Wed, 4 Oct 2017 21:04:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6122D28BCC; Wed, 4 Oct 2017 21:04:31 +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 C82E727E5A for ; Wed, 4 Oct 2017 21:04:30 +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 1dzqoG-0000Aw-S5; Wed, 04 Oct 2017 21:02:28 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzqoF-00009t-6Z for xen-devel@lists.xen.org; Wed, 04 Oct 2017 21:02:27 +0000 Received: from [193.109.254.147] by server-5.bemta-6.messagelabs.com id D8/26-03454-26C45D95; Wed, 04 Oct 2017 21:02:26 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1WSa0hTYRjHe89lO64tXmfl09KohWgXtWHXTyl 9SSvwQxSFmGd1cqvdOmfWBD94q9TUNOyimAkT0aAwCRTLLoMgl7XRcuUqMZIuFpGZYU20nR3t cj793/f3PP/n/x4ehlQXyTQM57BzvIU1aWUKKuEosSaR3Tmwb11xyarNLWNOKhVtf3ArSGSi/ bTRorc6cmhDww+jza10eO70o0LUoqhACobCRSR8qqyjKlAEg3AWdN4sRyJQ42oC3Jf6aBGo8U HoHp6Wi1qG18P1K56wXoiXgn/cF24g8SMSbnX1kxWIYaLwbvC/TRdrKBwHg2OXkahVOAM6fc6 wJ+BlMPiknBR1ROjeea0USbPS4eSYd7Y+EvrqR8LhSAxw/8OHsD3gFXDhar44FnA9gsB9Lyn1 xkNv8DMp+cfCg8eNlFS/C7pLN0n1zQjOVXUh6VAihw5/rVxqWAsTgXe0BN7L4NfAR5kEtsDY5 OSstsHQmYuUpL00POxBko6BiYfn5VJzGw2vPIHZX5cDX2aChAT6lPD1xitSOpTLYcbZRteg+I Z/3trwz1ubEXEVJQgcf5zjE3W6JD1vzDXYzazRlKhbtzHJzAkCm8uZWL2QdNBq7kShRZgX+rr Rt9ZMF1rCENpFKtgxsE+9QG89lG9gBcMBPs/ECS4UwzBaUG0QWSTP5XKOw0ZTaJvmMDBK7UKV LSOEVYKNNQvGXAm5UQrzverFFMGUDb6eItSUxWrhNNGqAtEJi6WGPMsfo7nNfIpiNVEqFIqmV to43my0/89HUTSDtFGqYdFFabTY/8wbDUUhQlEai5+JUezsX6QpRE+xcnDaOXH7nBptvv2849 BIURPVs3iP3psjdMT77+5NG6/evrKuvyk1LgufsBma0kymlMOO5IDL8fPouHZR5tbR9GPlL3U V9zKys0bLts2XkUcqhfYAPd1+08pHZntOKXzBqjdI40uuLDh9tqbV0/LCkX3dNVS7PC61191d paUEA6tbTfIC+xvuZnbplAMAAA== X-Env-Sender: Volodymyr_Babchuk@epam.com X-Msg-Ref: server-14.tower-27.messagelabs.com!1507150945!107522891!1 X-Originating-IP: [40.107.2.43] 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 19647 invoked from network); 4 Oct 2017 21:02:25 -0000 Received: from mail-eopbgr20043.outbound.protection.outlook.com (HELO EUR02-VE1-obe.outbound.protection.outlook.com) (40.107.2.43) by server-14.tower-27.messagelabs.com with AES256-SHA256 encrypted SMTP; 4 Oct 2017 21:02:25 -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=LxqoRk54f5SqaUnoKJqbut8ulCKcAtLL5zYb5vA4NxCiY3HGG+XK/kVpKAIJWwjLXwp56fp4akeyj1+87JPCjHhbmdfBi/njs0wqK3Y/20SQrW+uv//LqhazOtfGsE4GuNK58G8YU5GW1qwfBUIXHxRMBekdBx5SUiKa0gR5As4= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.53) 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.77.7; Wed, 4 Oct 2017 21:02:22 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Thu, 05 Oct 2017 00:02:18 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Thu, 5 Oct 2017 00:00:27 +0300 Message-Id: <1507150827-7858-12-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: AM5PR0602CA0020.eurprd06.prod.outlook.com (2603:10a6:203:a3::30) To AM4PR0301MB2130.eurprd03.prod.outlook.com (2603:10a6:200:4d::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bdb78946-edd0-4bc7-ceaf-08d50b6b355b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:AM4PR0301MB2130; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0301MB2130; 3:uUaZgZJJgPKL8UvQU7SfgLKKDiqp0huEUGWKBXX/kgpgI1IV4ZVFCGKKf2l1uaN9dFLgSML44fCXP+Ez39usL9mQ/1X3cl8wNb/jAeM29BG48iev/DoFxafr2/N8OSVkMfU4JwmA032kNjgx8UX7XpLN66qbfj/pb1tQMeT+a6lF5kBmwb+6KlEIM8zFlymlOAsnDyKtkwvZ1XcUSiAb0CDM5/aKLVceqSrgt4laxjqngMkKhNrbZ5nJVCcDoA4u; 25:8Uu+my6i2XPRXlWk0QRkI4dMHNN1GfR+/c/H/PRnAsBHBVI0vkqhTwqnmXbTm0eS+NXidD1OXEB4pJqOhyyoVnmQs8TuUmV+ycCoUseaNA/voQ8aByLlcoLZFnwP739CMiDfJWjAv92jzTyXSrJv8NJlZI3ljg7A8uXG5CDWlbNJ1orkuZCH86Gph5tidxlTMnMvQSQRD5DZkJv5BQBNrLdNOWdVhvCd9InCvpDY2JbxYXqk/bsfVY/pdIPXq1//DZRzteoAVoET6u3wj0KcBYWO9DXbBKLyTrohSHSlWollgW7s7pk9VYcJP5/u9JZNcyzxuVZNYHD4rOvb99HKvQ==; 31:HwNqiQGP2Q8la26+WLJzt1mUkxKp8XAvJ0bCKD5wn7P7Zchtln2dWSr8wLV45prM93aMRSjFJpCH/mqxSY7Mk3VmQRB3nVBVFVzrOIvCDEq7prCcGto96W0fyqt7qa3Le/YCy28K8OpUBPY5LhPXSVsPXXWiGXtSRYT8bvaF+LGnUaHn7gwO38Kb0P1amGxuL3iFUcA8IynMPB7as/oGuz3f77+RiyDJNIjLuM04BBs= X-MS-TrafficTypeDiagnostic: AM4PR0301MB2130: X-Microsoft-Exchange-Diagnostics: 1; AM4PR0301MB2130; 20:Gg9P7TWCZHtWmgKELZCpiveS8az+yo0Jm9FaJplIUvAr764pai3ZSukuaU/m/GvZj6mWVuq8Epu4aaSlV1+VPkGqmtN86RuyCNuiTFQXrjV8fDeoiGIClxN80u+4S4gkyuwQ66VYtatSqbhjh3cWjibfe7gjdBB9r6Yow6g3f8Y5m7KYFEEZKnWOGH+5xsiTzYNYgjgNayp+6Awp3spcun8jR5FFQRXs6bpFppHLhe3XwlWGYZ561nntEeNHAWEHw4DiqOWbBMImGwQYqkyWVibtymsJSHpm2pmQ03KzKymM8wiFRBvfuEghXpfOUhQBT/w+jV+/2J23/l5NBz8rkQNbYESedqo2U93VsDdY0FdTXXDEK+VR7zf2xnCgRMEVUmGSxwqDbHUWgH6PQlPOb5zPe6wxLRH2VkniK7eNAIek8XAfArZw756U0vOr4IVpO/3whjS/AJ7Wq6/51CYAQliZIsZoU3NHiUaMkRttjRTmKTL+tu/vSKwOqTgxxNHd; 4:oWe3Tna815bScgmuCBq5AOnW4SQEcmHjVUEuNVyH9VpLnZcpVNcj/ogZ/GCxKHmyCq42607MJrjC/h/6qaaZw/NetMFujPp0RsB2stGm/+1SjGtIubuf5LvqXdBmZbFDgqxSTSL10ZBGN4gANuvg/6wroSpkefdxZ/4LV4/2Mk1r+rZq+lJGIWJtG4Qo4eV1MweVmgDu9fjSB8ngj5wdJ9TX0klY6/e2OzvOx2Zcy6NqGVJZtKukTYzF5xLBzT4bqzp23XxjrkgvyiCTdYhE0ukrNLlfuXqQTTitFAKiVXg= 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)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6041248)(20161123555025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(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: 0450A714CB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(376002)(346002)(189002)(199003)(3846002)(81166006)(50986999)(81156014)(106356001)(8936002)(2351001)(8676002)(2361001)(5003940100001)(101416001)(8666007)(36756003)(68736007)(8656003)(6666003)(4326008)(76176999)(53936002)(86362001)(105586002)(6116002)(50226002)(122856001)(42186006)(7416002)(50466002)(16586007)(2906002)(47776003)(316002)(54906003)(6916009)(72206003)(2950100002)(48376002)(478600001)(97736004)(7736002)(80792005)(66066001)(305945005)(33646002)(189998001)(5660300001); 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:qEN1hLBOIfLjGjJR4JHGHsyXJcrvRFGNzOXq8hk?= =?us-ascii?Q?nruexy0ms5jpyq2bCneCNBkKf0RlIeJG/70Mq4db3qGhbLqxHyYAC0rA72dE?= =?us-ascii?Q?97kEJj1Vrud4tmuZQzCKO2iu/3xN6ag8c+ZQz+JHLXNMSSKCFI39Z+wSfNeR?= =?us-ascii?Q?g3TzyVlCFiCVND/VgfXH4SH/OBr1m/G62Uhz3XVsh4I7vMNPGsrbV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SPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2017 21:02:22.1314 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB2130 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 v7 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__ */