Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3346665pxf; Mon, 22 Mar 2021 04:27:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbDoz/IXqKydWQa24nrBjax8lfGl+IhsjUt3n8n2Xh+qCA/fTsviugNNxOHEszDgWJG7oJ X-Received: by 2002:a17:906:53d7:: with SMTP id p23mr18938615ejo.140.1616412453302; Mon, 22 Mar 2021 04:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616412453; cv=none; d=google.com; s=arc-20160816; b=eQjaciosAWN1UC/bmELFT+Z0zlr8CSjwD7gAhrRaO6fTROyquayTrriMgmTX1P5LpN DHEyNXEP/NTKGYXwPPNm6jOxKG/LuKyWIlcFI8QwY9Dh2QZFgroVNR3R5XVC5IruWNMo ToYJRhNcrs2XXWQuomtT1+fiFNohPctscnfBqLU63G+EAWMn3HmCbJph5rrobi9Kfihj 0kiscs99PFoGXMTcXqIyOPDiuOfKrcNgOeOTdGu2ja9kqO5C26Do1rsAEmxZ2ip6AhFK IMly9ONDHftXBHW/i69GGNNZRgantsQaPIKcE470iVTNJk70B+CPBoJJ5bUAhvUMGCSf uYeg== 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=PaZ9NMNR1P8biqyhh+R1pVVOP3W8UW0qc67kjxWr9cU=; b=X+EDgwd3AYod25puV17o+oXDtJYy0DBRKHWY7Bm2Q301+neE1mABWUpcYXkT/QYGw8 sW1d8Xdh7WnUkQt1T/fjQPbFb6YNdkoU1ZoAdIe2IYYHKJ2svbJJIuNVHV7lmEEWoIe2 WxemoLXGhi8cwaJ4Qj20OXMblESmlDd2W8k3r9HzD3QVw3PlWhQEsGg0r3uZT3bk6HxN WULyLrEHuUxDLEqAqMPi1BGcKP6+HTpk0dqMfDwIAm1jd6bvI0uWIf+njy7y60g6rApq QAXhH8w2etlbO35P+S6eCBGDEVVXb7Q/ADqh+oA5MNDq53Jocsz1x+UB6nPGJbnxg8zX VU4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QJQ3wCuU; 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 w5si10493665ejz.607.2021.03.22.04.27.11; Mon, 22 Mar 2021 04:27:33 -0700 (PDT) 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=QJQ3wCuU; 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 S229810AbhCVL0U (ORCPT + 99 others); Mon, 22 Mar 2021 07:26:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:37472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbhCVLZ7 (ORCPT ); Mon, 22 Mar 2021 07:25:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BAA1E61984; Mon, 22 Mar 2021 11:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616412359; bh=PzLkd0Gp9jIBSRQCzJxuUu+Zrn0Xf64IlgL4+coMbzw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QJQ3wCuUvGBWF4pZF546GIrJMojyVKWgUqpt/xEtubgwefRVr/2s3NPpZKO1k8Ofa M1SJmXGhMdM/t7PZ/207GcxroaIx4feVCPUNwXNf6yebFiqnQYHCOLEJtvVheJyXg2 DSw+i0MCQPS/VsY4YQ0PqF7eIsCw4o4BKaUX9OChAUXj6VFYHNXXG8tL4Kl3uvIgav Fj7YKK2fFhskNfN8+Cs/UNVZGqlt0MMBujxt8i4dS9W95bI9OWkoE8mzVvlCYzgz6E nQtdgYwRCByxcqczfhmEcevstblWjGUlmU7OJA2XbYaKAFJC6fLlHSdFywvkJAHBaW P3BCZSWpUihIQ== Date: Mon, 22 Mar 2021 11:25:53 +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, seanjc@google.com, mate.toth-pal@arm.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, kernel-team@android.com, kvmarm@lists.cs.columbia.edu, tabba@google.com, ardb@kernel.org, mark.rutland@arm.com, dbrazdil@google.com Subject: Re: [PATCH v6 14/38] KVM: arm64: Provide __flush_dcache_area at EL2 Message-ID: <20210322112553.GB10318@willie-the-truck> References: <20210319100146.1149909-1-qperret@google.com> <20210319100146.1149909-15-qperret@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210319100146.1149909-15-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 Fri, Mar 19, 2021 at 10:01:22AM +0000, Quentin Perret wrote: > We will need to do cache maintenance at EL2 soon, so compile a copy of > __flush_dcache_area at EL2, and provide a copy of arm64_ftr_reg_ctrel0 > as it is needed by the read_ctr macro. > > Signed-off-by: Quentin Perret > --- > arch/arm64/include/asm/kvm_cpufeature.h | 2 ++ > arch/arm64/kvm/hyp/nvhe/Makefile | 3 ++- > arch/arm64/kvm/hyp/nvhe/cache.S | 13 +++++++++++++ > arch/arm64/kvm/hyp/nvhe/hyp-smp.c | 6 ++++++ > arch/arm64/kvm/sys_regs.c | 1 + > 5 files changed, 24 insertions(+), 1 deletion(-) > create mode 100644 arch/arm64/kvm/hyp/nvhe/cache.S Acked-by: Will Deacon Will