Received: by 2002:a05:6520:3645:b029:c0:f950:43e0 with SMTP id l5csp6297560lki; Thu, 4 Mar 2021 09:30:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxl0SA7ycXHvifZoEhwAWDZMlQnLcPQmnAIdbRyeqI7MR8K2vb+tIrCt6uTe8WkC4Hpv5X7 X-Received: by 2002:a17:906:801:: with SMTP id e1mr5256659ejd.465.1614879058373; Thu, 04 Mar 2021 09:30:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614879058; cv=none; d=google.com; s=arc-20160816; b=C/AERht3aiYOE2HAcntEzebcioXYHoD/hcNUMsNv3AJbld6SwuEFO7dmN86F7YVJcQ aabagY9ceJj1cZdYkpNO/n3wbLMzBHvhtfDbCgyhpz2S9Dqv0NLGtfLisBh7Ahhtn3+D yAdAPgiZkW9nJlLE0uAqEoSyyQ1TiQbe/m4khS0rgM0u7oZ/IXvuKRPFymEIXxOcu0Jl EV9lE5ZyaiaKx4VvqlHDBVbsqC+1iaPA+jMJfqpI4N8KF0SWjDllKpYMqAKbjvyUBxzQ a+w9uGCm+1791hZZmsbY2w2BYyGQHB7Yhf7bMgTijH1cnwfpYdb2EfkxxyhEyqaOQtQB kxxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=q28XiGaKvJ864gWNRBnp7Fdsqb5n6rq+nfDVA1a4V/E=; b=EOX6w19bpKOgTVdJaIct5QOP51UKsWaXYe22s75vgVa7A+RmSCxkzDhPIjObwfFazQ CpyY9AaNu+qv/UQNinyTXk+dpwh5BTYff6BzOBqV1BlDdElgeSdgY7wTqiYaVKEa6q3O yoJ4kpciWR5oNYlRDGyY3MyOguHYBvyhRDElzBOUSaICFIipoRTbUCDRaujO4v7XIZox O6skWUHQoa/gWnYwwqpanHqaAUG/Y/KQFf/AVu4EpHR7CQBLE/5rZ5tRfdATd+bQWHEs bGazaF2XkhR2LnWIgv+skDT0z7saeA3K8knO0lMmEvU1B6RBkGFIS0FFoGaMGw/asaa2 aBPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hmsy7aJY; 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 w21si11146161ejb.465.2021.03.04.09.30.33; Thu, 04 Mar 2021 09:30:58 -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=@kernel.org header.s=k20201202 header.b=Hmsy7aJY; 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 S241389AbhCDNkE (ORCPT + 99 others); Thu, 4 Mar 2021 08:40:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:53112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241384AbhCDNjr (ORCPT ); Thu, 4 Mar 2021 08:39:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7FF4C64F2C; Thu, 4 Mar 2021 13:39:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614865147; bh=if92YC9vio4Wnb8KGrOYHJJSJjqsc9o370GPKUYZUkU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Hmsy7aJYf1pooezRgKSoYG7UiOpJ4DvBb6h3ohC4bVI3IEpgJT1OKDGPBKsu/v5EF nYNyd79i7vP6zNnD/A5Bq9F4TMnZWMBajt8XGtq0y5xk7q1xZrbJxQpQX1SUL/O3E2 0ZyITH9ie9AkxQvTvDw2E8z+eigm7fjJkEV5OyTs0jL5LQMLWZfHCJ42YyHTpFINmf C0Y6g98QkSFpFISLc8sbik2kbTKbuwMDxY+4X8x2n8lCYEJMInevvWAFwmMgaJDhI0 kN1KpXtEtWJKVJBwCtSil93ZkrFeNH/HDJ0cjlcpaeOtiRH6bSCbjD7UNSa4ZMWueU GO2ECp/5S3Hng== Date: Thu, 4 Mar 2021 13:39:01 +0000 From: Will Deacon To: Quentin Perret Cc: catalin.marinas@arm.com, maz@kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, android-kvm@google.com, linux-kernel@vger.kernel.org, kernel-team@android.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, tabba@google.com, mark.rutland@arm.com, dbrazdil@google.com, mate.toth-pal@arm.com, seanjc@google.com, robh+dt@kernel.org Subject: Re: [PATCH v3 04/32] KVM: arm64: Initialize kvm_nvhe_init_params early Message-ID: <20210304133900.GB21229@willie-the-truck> References: <20210302150002.3685113-1-qperret@google.com> <20210302150002.3685113-5-qperret@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210302150002.3685113-5-qperret@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 02, 2021 at 02:59:34PM +0000, Quentin Perret wrote: > Move the initialization of kvm_nvhe_init_params in a dedicated function > that is run early, and only once during KVM init, rather than every time > the KVM vectors are set and reset. > > This also opens the opportunity for the hypervisor to change the init > structs during boot, hence simplifying the replacement of host-provided > page-table by the one the hypervisor will create for itself. > > Signed-off-by: Quentin Perret > --- > arch/arm64/kvm/arm.c | 30 ++++++++++++++++++------------ > 1 file changed, 18 insertions(+), 12 deletions(-) Acked-by: Will Deacon Will