Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp497834pxu; Thu, 3 Dec 2020 05:50:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRgOgaV+EN2YfKVGliA6kHpHTS0oUwvmLrAa5D9utTx1mf2cP/AmnUwYf/CeJwBmLbAZ/8 X-Received: by 2002:a17:906:adcb:: with SMTP id lb11mr812314ejb.346.1607003444020; Thu, 03 Dec 2020 05:50:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607003444; cv=none; d=google.com; s=arc-20160816; b=vr/gpV6Jdt72h5NdS0f4QLpVFOg0YawZWTgVIuLmgS2QBKN5vGCPKtfFKHvyHMa1ZR Hhj5LxjuBV/pHK72hpqLUUQX5YEkCSmUEJkkE3LDmzvPZdPaNKfWJBO7wLqLx0J87gEU FDh6IejXD/OJ6+EIgMoqHVhp1x4kjMZN1YWowruCteA3RtzFP39YFr3D8cyuee/WuqKc rud/NANE/56VJ27wUCR2NpV2vy1RLDmBns/7KpNZCopzIegmaOJx7EeI2PNwG1RDLYXy YbCrBQeNT1a6OMvUEhS59v/OcJ6OlqgO303+iVbCwo3atbB/g8v+KSaoR+fhgLNhgmRQ 1BgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version; bh=kNM34NejHKKR3bXsK0jwnS8vzLV6yifPqD050AVBHJw=; b=IclcpZ/iu/0MRhHQHsM1Jrze3zv/I2aQ6Xi8gFE2wfrF7ur9G1eA9t4vMSfbkk9lw7 fbh4P1bjj8KZpn898ni4udfii8maUg2Z1A9vP/nf9rpBjC9FajUcyYmHikMsmYmuqUZP svX2tFVffJDTnMLt0saxsyGqwwjz+9xxPlTIag/QGUN+wiYxf2VBqAOVe7QAthqFlC6V 1vPM+ENfj8fJ21sCscmDBO66yIakR6ejZJM9dezr2tn+KQXNMKYTppGxF36LQVWlx9Xx RhvLEShnMpN75wPHZn3FhIHk/EbK5UZkdEQPZIhQqBS9rqGqnbVvG/cvYPTE3we7rHQ+ 9ROQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g4si1133366ejd.304.2020.12.03.05.50.19; Thu, 03 Dec 2020 05:50:44 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728194AbgLCNq6 (ORCPT + 99 others); Thu, 3 Dec 2020 08:46:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:57926 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727812AbgLCNq5 (ORCPT ); Thu, 3 Dec 2020 08:46:57 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C413A206D8; Thu, 3 Dec 2020 13:46:16 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kkow2-00Ffsk-Il; Thu, 03 Dec 2020 13:46:14 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 03 Dec 2020 13:46:14 +0000 From: Marc Zyngier To: David Brazdil Cc: kvmarm@lists.cs.columbia.edu, Jonathan Corbet , Catalin Marinas , Will Deacon , James Morse , Julien Thierry , Suzuki K Poulose , Dennis Zhou , Tejun Heo , Christoph Lameter , Mark Rutland , 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 v4 16/26] kvm: arm64: Bootstrap PSCI SMC handler in nVHE EL2 In-Reply-To: <20201202184122.26046-17-dbrazdil@google.com> References: <20201202184122.26046-1-dbrazdil@google.com> <20201202184122.26046-17-dbrazdil@google.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <3ac00cc2e2887f85e250288a7b6b5e4f@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: dbrazdil@google.com, kvmarm@lists.cs.columbia.edu, corbet@lwn.net, catalin.marinas@arm.com, will@kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, dennis@kernel.org, tj@kernel.org, cl@linux.com, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A couple of cosmetic comments below, none of which require immediate addressing. [...] > diff --git a/arch/arm64/kvm/hyp/nvhe/psci-relay.c > b/arch/arm64/kvm/hyp/nvhe/psci-relay.c > new file mode 100644 > index 000000000000..61375d4571c2 > --- /dev/null > +++ b/arch/arm64/kvm/hyp/nvhe/psci-relay.c > @@ -0,0 +1,100 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (C) 2020 - Google LLC > + * Author: David Brazdil > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include nit: is there an ordering issue that requires this to be out of order? > +#include > + > +#include > + > +/* Config options set by the host. */ > +__ro_after_init u32 kvm_host_psci_version; > +__ro_after_init struct psci_0_1_function_ids > kvm_host_psci_0_1_function_ids; nit: we usually place attributes after the type. Thanks, M. -- Jazz is not dead. It just smells funny...