Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753293AbcCAVUE (ORCPT ); Tue, 1 Mar 2016 16:20:04 -0500 Received: from mail-bn1on0064.outbound.protection.outlook.com ([157.56.110.64]:34910 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752258AbcCAVUA (ORCPT ); Tue, 1 Mar 2016 16:20:00 -0500 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; Date: Wed, 2 Mar 2016 00:19:23 +0300 From: Yury Norov To: Suzuki K Poulose CC: , , , , , , , Subject: Re: [PATCH v2 0/8] arm64: Support for systems without AArch32 state Message-ID: <20160301211923.GA1325@yury-N73SV> References: <1456393968-17386-1-git-send-email-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1456393968-17386-1-git-send-email-suzuki.poulose@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: HE1PR02CA0054.eurprd02.prod.outlook.com (25.163.170.22) To DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;2:ePQNQSkO0Lbgwysl3Bw2vNLlH3jhfZlL6oFL6Uz8O1yJYpaNiWssoNIytykjWbHO2AsJ5JYBBEC1m7D7aATmBWN8Y9yF6VNCot1l/kO05oKMTUdJIXpcfZv1Uy0HRqZdakS/XkSrob0b0rsjnWvtEw==;3:uH26x5yV26xXqQ8oQXSTAXKgfBe+xSha5ZsJMmdqf8g1qG40RmYmII4zDb3wZgkvReOGcg7B3ta8udw25grxQVvvWRc/WgkCnmwgXOrb3eFMbMHhf33ZvzMAdFF1YZkl;25:GpZe+RveHM2QhCv0z9qAhQGXKQacLxK47nPQWY7ALArJu7irTWY56tUHoLZJWTNCt9TOVzyooXYOMNSKx7aqKjNbBFY4DQ+ZEFoA4SWzj6cDPmNuKLKcZTkscs6MfouPJVvy54tWJ+s9CaIJvFS56sw/qOkLqZ+625pCUtnbN5Ics8cbcYzFW8ZElzfwEWgOVu0rZz8NL1GV3mcOGq4PmT5Gv+ymX2rfsh/kkRK9mWy7/OZ/I8BAm4As26lugFO3jShgyocCeAmtLP3dqMg1OD7VMF1koJxtnroAsuy7GvSRcTuNtZ7hfx69jIh+rIO+prc30pNBVYEfIeHfyRDbEw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-MS-Office365-Filtering-Correlation-Id: ca1e6c5b-e52d-43e0-55e3-08d342173e15 X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;20:zLGW1VCgzeX3Wx1l7Yn+9GRbDR/ILleIyrxkAUSTCKkucznU4yxGytHxx4u50KWJJF73aOgJmlZfM7hEzGTYHZFRGoTNqvToZbPEWuLZqCRx9K1LKi0gjw9Be5mWSZc39w5lCWSj9ZvIWPWEoqDOXuF+WF6iZgImNvQlQh4IFjLN2LTaoXhk5Lz8b256LYhL/ldVYvX/n3hu0c+fqTSh5HyWaRjSiyCszyl07TXgyUVfFG/UF4rUWTeExW71t2umSoOxS6uOcRcFd4knKNs3cYYPHFfcmEv5qVC/Mmi9CtOtkrtgWybwHBRs6DyDlNhGRrff+vCXJ48zmeGN8bggbXYNQVlSbKqG5dGndj1TKyiON+5Hv2hU2SNOe512fu/vKRpohxEXM+289I45wKURJhRAawpq9La5DxQctFryjavlovTtgrJgFJnh+l5bdwV7TWcrQ9CkpmvQS8NF5PVhBnwdwBf1IA43YSIKfAP1i8OtEGThTxuYCg/FRUfqUoz8cszJJSo8htdnLCpMperJrDzh84SdHLsR90wV5aewoVjnC37nTMHU494+MDq5Id/BSf7YdSDrRe7lPMh7BV7wwk4+tDRPsvowGCK/bv6EmSI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:DM2PR07MB624;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;4:8Nu6tauIRrkKK+XwM2XawkOc4VjQCY9MAr/ngNbMNL3/APCL5tG8kbsIkZ44g0stfaXi+foS6cNLCZKCEyODI4wvIUzIF100eBQ1lfyamnH6bKn904WnNgIFSeGYZxz6PAYBlSf8YRRwIBiylaD4LD1vTrcXzt3kCU0D+Da+MmmhQMZD9KfFsgyi5wiUALyNYyXCQ3+VFF/BcFd2numw5w9h5aBSXxhgGPOTJpEsc5b5JTGou1XA/1GxKm3ztTZWvkxIHkvkqS6eKuGTRiSsD4ten8BcE0ScDv1Qf+WBY3wCX913JfkyH1r4UNChXkElXdrrXordtOLcRJKyAXA0qIyGc+6znSkFPyKT3pgcgZHS6HIN/gSvdbsbIGbzKP/W X-Forefront-PRVS: 086831DFB4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6069001)(24454002)(2950100001)(5008740100001)(1076002)(5004730100002)(189998001)(2906002)(97756001)(122386002)(110136002)(5001960100004)(81156009)(40100003)(586003)(42186005)(33716001)(76506005)(19580395003)(87976001)(77096005)(15975445007)(23726003)(1096002)(50466002)(92566002)(66066001)(4326007)(76176999)(50986999)(3846002)(46406003)(33656002)(54356999)(6116002)(83506001)(47776003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR07MB624;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR07MB624;23:qiGob0Rv0GQqe2MyZQEyOjOwofC+WibxCa9BLvU5LG?= =?us-ascii?Q?radKhAhsvKYjy0TiKh3IjLUTJLizxiLWCyJHll0tLGqoUUo72OivgnQVZhzl?= =?us-ascii?Q?V1A5EeVPreY0MLSX5tiqNHPerr+gU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DlgQNN/34nzRozWqJQh/iHhGKYXZ0F9XmSCzQNfhO+Q=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;5:QDNUX0bNFUdZWFhm36tEPm5yLFWSmlkDfmyG0t6VVociPM43VKUBxTeOrYJQelQk4MQgcFdVZH1/hK+66HE8+n1lbt+Sw6RXgjFde2FdL44TY6IZXKyYSqW8gEMe49zQIXHun5PAQ0VXPI2+eC81WA==;24:i+/atI8Wk5HP6trJz0gd0LCKMDPAhxkQzETLYPL7ia1far/FcUNpatIO1CZmv3Y67rZxrfT4dlim622YHM9nEgUaBEumCIXcU6topriWlBA= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2016 21:19:57.8107 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB624 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1107 Lines: 30 On Thu, Feb 25, 2016 at 09:52:40AM +0000, Suzuki K Poulose wrote: > This series add checks to make sure that the AArch32 state is > supported before we process the 32bit ID registers. Also > checks the same for COMPAT binary execution. > > (Painfully) applies on top of 4.5-rc5 + [1] + [2]. > > Or it is available here : > git://linux-arm.org/linux-skp.git noaarch32/v2-4.5-rc5 > > [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2016-February/410556.html > [2] http://lists.infradead.org/pipermail/linux-arm-kernel/2016-January/401913.html > > Changes since V1: > - Prevent changing the personality to PER_LINUX32 by adding > wrapper for personality() syscall. > - Add the check to KVM before initialising a AArch32 vcpu > - Tested on hardware. > > Btw, linux32 doesn't complain when the personality() syscall fails to change > to PER_LINUX32. You can verify the personality by running > $ cat /proc/cpuinfo > which would still list the 64bit features for the CPUs. Hi Suzuki, I have some troubles with access to appropriate hardware to test it, but I didn't forget. Yury.