From patchwork Mon Aug 21 20:27:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9913709 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 87FE1602A0 for ; Mon, 21 Aug 2017 20:31:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79F15287F4 for ; Mon, 21 Aug 2017 20:31:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E99728822; Mon, 21 Aug 2017 20:31:58 +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 D02F6287F4 for ; Mon, 21 Aug 2017 20:31:57 +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 1djtKj-0004M7-Az; Mon, 21 Aug 2017 20:30:01 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djtKi-0004L9-EW for xen-devel@lists.xen.org; Mon, 21 Aug 2017 20:30:00 +0000 Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id 8A/96-02177-7C24B995; Mon, 21 Aug 2017 20:29:59 +0000 X-Bright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k@epam.com X-Msg-Ref: server-10.tower-31.messagelabs.com!1503347398!110263046!1 X-Originating-IP: [40.107.1.51] 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 34925 invoked from network); 21 Aug 2017 20:29:58 -0000 Received: from mail-eopbgr10051.outbound.protection.outlook.com (HELO EUR02-HE1-obe.outbound.protection.outlook.com) (40.107.1.51) by server-10.tower-31.messagelabs.com with AES256-SHA256 encrypted SMTP; 21 Aug 2017 20:29:58 -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=Pn4WKe2AqCa+OnD6iP+/3aYnyJGRpAttaE/r1UguDAg=; b=LKtacoYFXLxqxZjOh1DG4ysZ1yWMqpNEj8we0JTb86Rpdt4bebVm+oCTLgy3rmgIrkXxoSr1VQPBAIl+FSeT8I/Ty8SHAgZ8f1cRw3DmD0pwi0nYc4Nps015NtaN574Mdza6QysU7hecjwbJBMQ++48jbPbb5DxQld6i3OowiwM= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.58) by DB6PR0301MB2134.eurprd03.prod.outlook.com (2603:10a6:4:46::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18; Mon, 21 Aug 2017 20:29:55 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Mon, 21 Aug 2017 23:29:49 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Mon, 21 Aug 2017 23:27:55 +0300 Message-Id: <1503347275-13039-12-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503347275-13039-1-git-send-email-volodymyr_babchuk@epam.com> References: <1503347275-13039-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.58] X-ClientProxiedBy: AM5PR0402CA0004.eurprd04.prod.outlook.com (2603:10a6:203:90::14) To DB6PR0301MB2134.eurprd03.prod.outlook.com (2603:10a6:4:46::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 94dc6b6b-e431-44e0-4045-08d4e8d362fa 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:DB6PR0301MB2134; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0301MB2134; 3:v/8l36NWgy1NCWEYtNYsRApUzUKl9QyXSjFTFbZY/eorxCe7IQL3IJGzjILBxPb4Sna+vgur1kIfwqNML46EwvrKodG8aozEglrx/CJce1tomp2Luy38lXYiidO3sKKN9o0dHTelRVG0Fj4V7HGtMMrxSt9Qaas7i91ktyzuPMBjL5VKUNjvyn94USPMUgCtX9LiPHu+y1gyMtaI0hHi60jzAyscWbIKZcYVSHWvvwlCs9dKvJ55pJOCF0CNWoWX; 25:3rmubVPCG0Z5UzI4UG2GnOLNVE4xPt9LtMMzIJi5Hr94vIEikgg52wyJRTy3N1HguEDhNAQnWzcWc4Mxs84A6lsTU2wRNBJ2nPuArk7iuO/d6wFIX9O0N3/gEAP4w4r3qjRd03ht5xqn3KhfxeyGc2o/0KyO7VIoQ+WwamA4TFQl/jIkR7GEDovShJMZuopSmzrXcSQ1w4x70YKsb+AWnRQ3Fn2TLH2slNDOZM40H5uzDaiOdw+cOGd9wGu2JAs+NpyRgZ87uCnv6Tck55tvS1AFgIlcJDJbEbsj+iItvE8NldP77Wq7BNVZWgoLfsrpQ4jtdaqhA5dkcBTR83UJ6g==; 31:vzYDefIP8NVsPltrJLuuszC+OzISlD6Z/pF+XSW9XWiu5J2v8xBzytwTj1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am-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)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123558100)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR0301MB2134; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR0301MB2134; X-Forefront-PRVS: 040655413E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(189002)(199003)(54906002)(122856001)(6666003)(305945005)(3846002)(7416002)(7736002)(6116002)(33646002)(5660300001)(2906002)(72206003)(189998001)(86362001)(8656003)(5003940100001)(50466002)(8666007)(48376002)(2950100002)(478600001)(6916009)(36756003)(50986999)(81156014)(53936002)(81166006)(97736004)(76176999)(101416001)(66066001)(80792005)(110136004)(4326008)(50226002)(105586002)(47776003)(2351001)(2361001)(7350300001)(8676002)(106356001)(42186005)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0301MB2134; 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; DB6PR0301MB2134; 23:gtbMhjLUnCTMI4vWvhxdOjscFMFi652dzrk5LIG?= =?us-ascii?Q?i7+Ra7WxLdYkeO5OmajEvP05qqAXUrGmLYMLBQXORGWLLlN2c0BZo+3MqypV?= =?us-ascii?Q?NjAL9c7d1Faoww1y+w07+U39xLG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vKTbjRDzRDdsdKlhmpj0rxsDnov1NsU5jrqszzyXjfKSOuTEt94UQS/cw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2017 20:29:55.3643 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0301MB2134 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 v4 11/11] arm: 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 As Xen now supports SMCCC, we can enable this feature to tell guests that it is safe to call generic SMCs and HVCs. Signed-off-by: Volodymyr Babchuk Acked-by: Jan Beulich --- xen/common/kernel.c | 3 +++ 1 file changed, 3 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 ) {