From patchwork Thu Mar 30 09:13:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Chen X-Patchwork-Id: 9653337 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 E636060350 for ; Thu, 30 Mar 2017 09:16:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCED828482 for ; Thu, 30 Mar 2017 09:16:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C10AA2857E; Thu, 30 Mar 2017 09:16:39 +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 6477728579 for ; Thu, 30 Mar 2017 09:16: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 1ctW9t-0005Qn-M3; Thu, 30 Mar 2017 09:14:21 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctW9r-0005Pt-SH for xen-devel@lists.xen.org; Thu, 30 Mar 2017 09:14:19 +0000 Received: from [85.158.143.35] by server-7.bemta-6.messagelabs.com id 84/28-04817-B6CCCD85; Thu, 30 Mar 2017 09:14:19 +0000 X-Brightmail-Tracker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abs.com!1490865258!55266849!1 X-Originating-IP: [104.47.2.60] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.2.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 20412 invoked from network); 30 Mar 2017 09:14:18 -0000 Received: from mail-db5eur01on0060.outbound.protection.outlook.com (HELO EUR01-DB5-obe.outbound.protection.outlook.com) (104.47.2.60) by server-13.tower-21.messagelabs.com with AES256-SHA256 encrypted SMTP; 30 Mar 2017 09:14:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rUYq1LfduwBGwCd6TqH3gNnFEPEmBnqXd3xWnv6+ACc=; b=kXRB5YoYEra8cZWcX3kO7j0Tx20zg/gJlFCGjjMzJ6jS2mPWVpJ2ggxOodiKGambngZOy2WqlLP+MXLMfIX+ltb8bJp7Nwn06WD7NgUhh3LL6Lz9NHwEfPPXuqYWsbg4klbJ8SrpChutZvoUGayLEsPbmEHcNCn99lkkElcj99g= Received: from AM4PR08CA0013.eurprd08.prod.outlook.com (10.166.127.23) by VI1PR08MB0896.eurprd08.prod.outlook.com (10.164.93.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Thu, 30 Mar 2017 09:14:06 +0000 Received: from VE1EUR03FT028.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::204) by AM4PR08CA0013.outlook.office365.com (2603:10a6:200:1a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Thu, 30 Mar 2017 09:14:06 +0000 Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 217.140.96.140 as permitted sender) receiver=protection.outlook.com; client-ip=217.140.96.140; helo=nebula.arm.com; Received: from nebula.arm.com (217.140.96.140) by VE1EUR03FT028.mail.protection.outlook.com (10.152.18.88) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.977.7 via Frontend Transport; Thu, 30 Mar 2017 09:14:05 +0000 Received: from P300.p300.shanghai.arm.com (10.1.2.79) by mail.arm.com (10.1.106.66) with Microsoft SMTP Server id 14.3.294.0; Thu, 30 Mar 2017 10:13:37 +0100 From: Wei Chen To: Date: Thu, 30 Mar 2017 17:13:12 +0800 Message-ID: <1490865209-18283-3-git-send-email-Wei.Chen@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490865209-18283-1-git-send-email-Wei.Chen@arm.com> References: <1490865209-18283-1-git-send-email-Wei.Chen@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:217.140.96.140; IPV:CAL; SCL:-1; CTRY:GB; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39400400002)(39410400002)(39840400002)(39850400002)(39860400002)(39450400003)(2980300002)(438002)(199003)(189002)(104016004)(6916009)(36756003)(189998001)(6666003)(54906002)(2950100002)(8676002)(50226002)(47776003)(50466002)(110136004)(38730400002)(48376002)(77096006)(8936002)(4326008)(356003)(305945005)(50986999)(76176999)(106466001)(5660300001)(2906002)(2351001)(5003940100001)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB0896; H:nebula.arm.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; VE1EUR03FT028; 1:DTYS2+ZOd+P0KwsPI3HvJCCsLVUd7l+pNjeDeozVb6eFM8+Ao5JduGKJiSXKNgKFnCM+zdii979vxOHc/swt+wxfab5tESnrJEU5rvoGbpgI4Qn5iaLWsPsL7UsL6R39CN6XHrLPuLe+XaAgQl0CAHgrxxohYydsC78ZYBTyUeTTTxAw/EZvcGDJhKW0bBMAiDCC/j23J+9OLHTFnrZirZi8mYnTlwgOvy5M/yiMK4GACRnLDbn0TSzXLh7DIQxTXdZ+LkuRXacVHlW0yOz1Sn7w3G6e5GioDgNyJNivKAPub9h/H/UWuP+JX0t7PSE5qqDALNps5JqmzzR6pIyaL8TOWaW0v1tkVyraGCXh1utHIbZ7YFr0HWyI2HWM6BOQZslVdK26j1EHGXVgpV4VpPt0TjBFtlUVOvcI37eYoeilOAYTUZD3QPtgnBHJqs1rwEiNSH5DJbQ2OaeQIUHZLXYEc1lvzUcK5zKqqqWwyPO7g0ZL2DANLc9brEv6dd0cN9tXgJz0U1/izNEIAVr1JmWwNhMhs/DGePj/hcFVbEKx0VrQUR7RJqRE2NdBvQDp0CAHpvl4/gv6f5edSsdOE1UHptSmhDg8ZKNGue2nmPs= X-MS-Office365-Filtering-Correlation-Id: d640b79a-815c-43a2-b114-08d4774d1da3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:VI1PR08MB0896; X-Microsoft-Exchange-Diagnostics: 1; VI1PR08MB0896; 3:/s5udVf1BmvEZFcvDGAp1sGc29pwXDBhDm3FE7wMpvJjdeLTGNtXFgoGoBMfBo2FDXOnUzfrnAeA2/sZEDngUIEw/mKvJXx2zbmr5tQlYrlPup+9z6aFkooJz1mrz23Rw+8GDdmuB8M1grPtP/enMo0SuMjlCWDB23vSVE0ecQePY/kIIWWpUnRVVUXa3Me2Huft/oTlvAV41U2ZKbyQ9Ed9udQ4QC8jvGgAYgMMN2csecEf0O3IJ2PZnVYhlHkTzkI2XXGOk2hbXp/WaRGVjcJV8oUpFfZrx4QgPzKx+VyZNLNlbHn95GHZmlqqppoUntcvwI8p/hlMZG/MK+QoXmCvlxUASldWZv4absHolDuLoXj9UX8rChLjlTsDhNqc9qspV6rhZS/XPhMKKOkzG41GvpKJLLszkuU4KtS/sa1jdThxXon1m+tbTlLepequYQGlbZk5x4vHQRE3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5vXw+u6WZRA6syTylH1auB4DFrGpUviw3NIJmVca3R9fIsgYeTw0GWlRYa5vbdPjziajXcYcDHtBjKcyPMazFPB2kzWwhl8UIikH7WVSUdESxZ1fqO1Al X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13023025)(5005006)(13013025)(13024025)(8121501046)(13020025)(3002001)(93006067)(93004067)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(6072148); SRVR:VI1PR08MB0896; BCL:0; PCL:0; RULEID:; SRVR:VI1PR08MB0896; X-Microsoft-Exchange-Diagnostics: 1; VI1PR08MB0896; 4:O8IKybt+8dt7tK6zKiIMzQdgD3Ybhxbhp6jCu+LuCGctpLFZ85yuzWodABDZl5FMyyHHGVWXvzcABihrURzuTpBnA1tl6Ki8I8rP5Xz/kvvaRxQ++ucfQ8FMrDqpOq5ijbv63C9T7EFv9Z4iTX4UAX2dM6bKvHh8vDornrYh/77rXGZvmEHXMhbh+2woGlqF/9kE+spG+ZHFD4BSMRF+YnYa6ZJYMNPx/ALLK3NxQuK2l6n+0W400OEkUBvZJUEwKsasvGdft8Cm62Zyu8iOb41NEjn6G7/oMZhJjP54E3N1oA9ZqZJHz0e4hj2iPTdcWrBl1hPdczuHsQaodoJSEpeGM40Ppz7vfNQJ+TFAWI074qznaCPrL1HBm75/wK7t45XAVghKTbG2zlrpxBEV7mfXA1G4vXfTbOaz+sJSMudkkRenSGG0IG4z02gUSvlqA+pn7+fK0PBmY9c8617+njsg5LfGEDEzv7I3MkeRg95Eng06qujx51wndZBThx33rz5lgr2f1fVd0KeYo/DhIySIMh6wTKRGvH8Fe9GkHbyYgGHE9ASZj+FesdX/Xxbm+LM3OHN21J3NJ2bKaikbONK86vQde7fGKpPG05taUWKuEHPGakBW9xKVryZsOYm1h5OmQFjO4PTqBu/sSGQwvGxtdWkQU6w8O9DYlqy8EDtQ7CBP6SKV0mL0yszCFzPT+lFsG7WK8wHVcWxOTvpEgn2TAl/e4SX3GCTnw10C649gGNVqxDwMhkvMFdSsFAOoHbHPxTEceeY+4jf6MNGax4ry3O7D6rW+AIMkaTJi6tLpeL40T6+D9XW5ok970xA3XdFlCEJwjm2F+XqNnBPgrYcsVJEkwodAS5VyI1gHtTs= X-Forefront-PRVS: 02622CEF0A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR08MB0896; 23:5J9Iy0zCJxEqxISqE6SGJPGBORHD1ne+WSGrV/hfw?= =?us-ascii?Q?tj4PWDMMHp8OzN0ZZgOdGLYO1aGIH7wd0aqY30GUAfVWu0YpUwmfnj8oer7B?= =?us-ascii?Q?+GtNT3u23S+G930KCgn3pSNExHalviQ/mubKpzRUiF6QXmNjbKwASAT0Dlag?= =?us-ascii?Q?f/JUtFKpd2Q2O16Tw3SwTuPziOVkH/jgrSTFn8QiWAI2n1oBot8JPg+NCyMC?= =?us-ascii?Q?7NHQmY6i9HVCRuAIkHIDWPi5zEfiUqxrBkOedbThY4B8J180x1mh7/3PJSaL?= =?us-ascii?Q?jjlVBS8FfDitLVkPSxqdCHWGwROU/kshUW1arsMMcudi5o4IC4lunURQ3FD4?= =?us-ascii?Q?UKbZWfTwOFH+tXRzShSFEVhDzAlxkOYb8ZS2G1ai6ktf/JMhfeCqRLD28REd?= =?us-ascii?Q?elLt2R3V5i+lMAMUufa4n3XTti75hydm2tVqnGzBgNrTo24n0Q/pdqv6YnXE?= =?us-ascii?Q?WDhyXEBecKX4nXVbPrcB83qMfJocok8jqL8sAjCRtiopD2neYpU/NDXnDRk7?= =?us-ascii?Q?q9JTYOhzr6P0ls6oZoUoJCG3mDPniF94npwQ3y2pYPQc+zF2gyqIdjC8hAP2?= =?us-ascii?Q?98W+7YBOLR2cg/EqetXOpuoUqkrs7Yatl/dhT3K5i2toh3s8VOklVji4ymKu?= =?us-ascii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b/TRzrBsa2q9iVk3D19X35nC60ydWWbMoPePGg5qiZNlQ0HOLvG3gGWPjzt7aofL6NMAla7yITTpwSF72HYBcCA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR08MB0896; 7:HDz1xNj+CO5wH5WTXEWy+YIM7BX1eq6fBNU//+sC0HgDB0NFaHfvXq+DYlshfmmWYjzdPfQTHMkEBNc0meidCAtGMccixFVhBC8YnxbrERC6sEUftnqnXCSfy96bELIIVfwwikQttJ8bVBwO5xYL0B0Ai/1PFSXg+X7dWX09Bwiz3DUp81wfWsAjNe6qPo5BlTwUdAX5v1XPBHduQDLo98OayJS86RydCif+nUnEW2qtkDeNnQGajPHPnKPGZ0NeGW5PzDAixWDjPZSy76ZqSqf8yrSq32d/rtrZAeHF0yANXFcCODK3tqvIldbnoSNoi2f1hJ0ehsjec2Ifzt6ZMg== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2017 09:14:05.6880 (UTC) X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[217.140.96.140]; Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB0896 Cc: sstabellini@kernel.org, wei.chen@arm.com, steve.capper@arm.com, Kaly.Xin@arm.com, julien.grall@arm.com, nd@arm.com Subject: [Xen-devel] [PATCH v2 02/19] xen/arm: Remove vwfi while setting HCR_EL2 in init_traps 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 We will set HCR_EL2 for each domain individually at the place where each domain is created. vwfi will affect the behavior of VM trap. Initialize the HCR_EL2 in init_traps is a generic setting for AT translations while creating dom0. After dom0 has been created, the HCR_EL2 will use the saved value in dom0's context. So checking vwfi in init_trap is pointless. Signed-off-by: Wei Chen --- I have tried to remove HCR_EL2 setting from init_traps, but the Xen will hang at the place of creating domain0. The console hot key can work, so the Xen is alive, not panic. --- xen/arch/arm/traps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 1da6d24..2f03f29 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -140,8 +140,8 @@ void init_traps(void) /* Setup hypervisor traps */ WRITE_SYSREG(HCR_PTW|HCR_BSU_INNER|HCR_AMO|HCR_IMO|HCR_FMO|HCR_VM| - (vwfi != NATIVE ? (HCR_TWI|HCR_TWE) : 0) | - HCR_TSC|HCR_TAC|HCR_SWIO|HCR_TIDCP|HCR_FB,HCR_EL2); + HCR_TWI|HCR_TWE|HCR_TSC|HCR_TAC|HCR_SWIO|HCR_TIDCP|HCR_FB, + HCR_EL2); isb(); }