Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp48684pxu; Tue, 1 Dec 2020 05:58:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgTblFQItZw/jpI7CVvLtqPZdg4UwZHLjzrnVCvixjOh4SoPCHkgia3Za1dKIo7AORxM9k X-Received: by 2002:a17:906:17d9:: with SMTP id u25mr3287724eje.34.1606831104270; Tue, 01 Dec 2020 05:58:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606831104; cv=none; d=google.com; s=arc-20160816; b=bSShJo6Jiz0mPpdm3HKcLuKkJADJJo6n+N6dn0QOHMJ3Ed4eyoWUrvDtNZK+j9iCSS kItMrlT9/CTJozPpXd7TNGXTYTR4XHmhOAZ454H0HMWbVozSBzvKXlrl85lMD0Ohb4CA SW9FY3sSUDhkpb6fpp+GM+xaEd7E1PsxHvL8bYFwXlcbLPAMP5uyM/MjAsEdAUye66MA o2K5Yb506h6AD/TVYUtxatZ6KOE90pwzAx2mg5w8cMExextUxfb3W+W29j3msAr0v6JN Vb4bzkIGlAMfS5l/X86yQa4QpulO27w4umZOZYCin6cagKzdbyGKhynjXfaREC/cN/8M dyog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+PwXtTlcdJC6Kz6wHrFVenV3uj6g4mhzGOO7PCwpUDQ=; b=L3RqxGvvE0kS8cD49//DUcehWGm6F18zGiOAZm8vmNxUFtwWd01coRXkuxmCpTPPvf 09UNRkbazekD90qc7K7RW3jmtEhFE7WKVFK7lNFx907Qiz1Ef+F7Eg4ahnCoUXrbzcjK D45oKXV4hXmpmhaLmbFJpaZRX1aa6pkq5fpQf3rBfMnojcItKIzS/1oew7EoysgdlyLO TymAWwntaXGQ3ZgweFC0KazTEIwViA5TKc0shLNWcifMkXWaijHL91XuExqITbUtG2WN /Ia0IY6OtOh5MV+ViTjceRso3RLRtVZxVR0zZ4GYiBfe4OqlTDAQhr7LiHqdIACSqqVF ea8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eUJWOYMj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si1228168edi.111.2020.12.01.05.58.00; Tue, 01 Dec 2020 05:58:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eUJWOYMj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391516AbgLAN4D (ORCPT + 99 others); Tue, 1 Dec 2020 08:56:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbgLAN4C (ORCPT ); Tue, 1 Dec 2020 08:56:02 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC35EC0613D6 for ; Tue, 1 Dec 2020 05:55:21 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id v14so2990019wml.1 for ; Tue, 01 Dec 2020 05:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+PwXtTlcdJC6Kz6wHrFVenV3uj6g4mhzGOO7PCwpUDQ=; b=eUJWOYMj7hUEXl+QsjBQLb4Ml91vgJpJhCrjpxbqM+50vIH2ZQr0o0DZ8eYxOZyD2o qwK6VPbpB7r9OpI2pQzstBVO51hojkHH/0EuWCbkVWnDnxeTGQwxo7VZuIIWqFp8HMiM HVgkn/F6eMzurxhiSQXvv2Die4eIq572mY627xAt4ltupWKvoFDcjH8wfMXyaRjTxDbK P2fC1SvegV0bW8P/NfopNX6pZGUs2h4/HoDwq+NF7H6ZGOjbQupT8yplG2TwaL5YU7QG 05vaH8BrE584TyNyIOq9F5K2WiZHXZ6N946VYV9SAcc566zeIk1Xid5fVDSMBBlJVcV6 Khrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+PwXtTlcdJC6Kz6wHrFVenV3uj6g4mhzGOO7PCwpUDQ=; b=R37mBaZobwDURRgBo+FjzNlAN+39PVFVV+eChglvB1faOl2SfT/9q4xse2b+YSJo77 2Et1V+MSfacK41oH1o1dMEWvUq2NQluPUqjIKQ/arkeOV3zM/mSyzdm3Wg+6lUxhORDY mnw6zRrciMz2qmnrlxXJXKDWGeatkH2kFjt6bbs8KPEZJXXXs42NxIoT7O9oqkbcbJm6 GlDRZ40qwmnJAbJnYGniz/5oiEXRvz/1NjoaZDaa9NRV0hB1/+kDsfaGlB8fCR1PA4PK EXHzFsRZ1JPnp9m+B05jGUJ+Vna5HQhozIzrsq7Nq7GgcQgSssHxIiX99VBe7q72zntR nArg== X-Gm-Message-State: AOAM532TVs7kVd8reVNXLmAyUkB5Nc/l6Tj5E7+FR98zV5dp2P0qcn6F n2SkgKEs8XzCv2g3HLZJM+ggLA== X-Received: by 2002:a1c:e042:: with SMTP id x63mr2861883wmg.68.1606830918697; Tue, 01 Dec 2020 05:55:18 -0800 (PST) Received: from google.com ([2a01:4b00:8523:2d03:7c5f:5ab5:ac1f:89ce]) by smtp.gmail.com with ESMTPSA id b12sm10194961wmj.2.2020.12.01.05.55.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 05:55:17 -0800 (PST) Date: Tue, 1 Dec 2020 13:55:16 +0000 From: David Brazdil To: Mark Rutland Cc: kvmarm@lists.cs.columbia.edu, Jonathan Corbet , Catalin Marinas , Will Deacon , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , Dennis Zhou , Tejun Heo , Christoph Lameter , Lorenzo Pieralisi , Sudeep Holla , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-team@android.com Subject: Re: [PATCH v3 05/23] arm64: Extract parts of el2_setup into a macro Message-ID: <20201201135516.3ksifw3ynlxyok7k@google.com> References: <20201126155421.14901-1-dbrazdil@google.com> <20201126155421.14901-6-dbrazdil@google.com> <20201126180608.GF38486@C02TD0UTHF1T.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201126180608.GF38486@C02TD0UTHF1T.local> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Mark, > In the head.S code, this was under an ifdef CONFIG_ARM_GIC_V3, but that > ifdef wasn't carried into the macro here, or into its use below. I'm not > sure of the impact, but that does seem to be a functional change. > > > + > > +.macro __init_el2_hstr > > + msr hstr_el2, xzr // Disable CP15 traps to EL2 > > +.endm > > Likewise, this used to be be guarded by CONFIG_COMPAT, but that's not > carried into the macro or its use. > > If the intent was to remove the conditionality, then that should be > mentioned in the commit message, since it is a potential functional > change. Apologies, and well spotted. Marc suggested removing the ifdefs as redundant during his review of v2. I'll update the commit message to reflect that. David