Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3970918pxk; Tue, 29 Sep 2020 10:39:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuuNhvzJfxrS07fNA8uRtwqP7ukhbzOdT0V0wr47QwlRFnanu7TfCsROZ8OdcFeZRAIpZ9 X-Received: by 2002:a05:6402:1007:: with SMTP id c7mr4553747edu.339.1601401151567; Tue, 29 Sep 2020 10:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601401151; cv=none; d=google.com; s=arc-20160816; b=sQN7snG8QE6b8lnAX6M09+Kvjq2iNUw6Fumh/bw/rgfl9iblN5aaW8htUAoTzmhBkD zZ1WcEyLXEGeoavWVzkFopFbwTuE5cQVMngy70njxaD2h68buuJIyzt+P3Rn4B4IpvXW PCQYJZb3dkciD4yXRn0L4fk+jZKgkxC1Vz4iqzRh6U8KKW6N6n7tyBjA52EI/VpmqD7i dvpjfoic1O+uwXpFf+uRBXq/3Vw0h0Yxd4UoJ1yKCqMCnzsGAUyWY0F7Ss1wOf0ptQpC 2Zf17x+/t32s4XqZUu2bBOciDJyIqIsBigtqMQByT8VtAqrznVQnrvAo5JnFX32AFQEm SupQ== 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=++/stNfv20bqzShMXmCk2LJyVunZxbzWQl/nSXpUhIg=; b=YAKdXK1/elpqTm37WGVhsegcGcnzcANNNsETUOhAwXMNx8hJ/sLgziALBQ9Iqkvh43 iR3qQD4JkDcNkeKwpSKzDhGh1RUoPyQGl7l7yEsssx9g6C+M0CPj4HQhQ6lahT+UFEOw kx3Lgph9R+CsdK00mfOS7agMLrPzSZPj7E3E6wgRS/LxWJCGyRsbYdRAsufkyvSJVp9m 80btkC0xQCCTvbh7TJ64LQYPRaiMNgV+hfeIChXfk5s5Dh6rmZoSgAD5NcjjIFEx0zU+ Ic34CmfaNRDeSBQY5MapjaJi/bSgH2asBeFhTEU0Deils0lQMBSp6aZQbcmssdVPVpef rNbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vZKRt8Bv; 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 b1si3250446ejg.435.2020.09.29.10.38.48; Tue, 29 Sep 2020 10:39:11 -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=default header.b=vZKRt8Bv; 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 S1728819AbgI2Rhf (ORCPT + 99 others); Tue, 29 Sep 2020 13:37:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:58148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgI2Rhe (ORCPT ); Tue, 29 Sep 2020 13:37:34 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (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 F104B2076A; Tue, 29 Sep 2020 17:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601401054; bh=UvE53L1sg8GJvFFhgRjsqC9XadWv4tH7FwQa5T0OhUw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vZKRt8BvGxP8BhKW+TX+EPD0sF8tIwU68IIJ5O0yeTLJykidd8yXBaRh2X9NlG4be cdqMJ7rEFbnk2lZDKK73WldEsTLqguaSKm0zeRVkLaJP33bwr9N/9y8IAu+/9D7vKi IGHQdUni92YI8Z3vgo2aB+88b/opTUQ4bfRvaYIQ= Date: Tue, 29 Sep 2020 18:37:28 +0100 From: Will Deacon To: David Brazdil Cc: kvmarm@lists.cs.columbia.edu, Catalin Marinas , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , Dennis Zhou , Tejun Heo , Christoph Lameter , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v4 07/10] kvm: arm64: Duplicate arm64_ssbd_callback_required for nVHE hyp Message-ID: <20200929173728.GD14317@willie-the-truck> References: <20200922204910.7265-1-dbrazdil@google.com> <20200922204910.7265-8-dbrazdil@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200922204910.7265-8-dbrazdil@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, Sep 22, 2020 at 09:49:07PM +0100, David Brazdil wrote: > Hyp keeps track of which cores require SSBD callback by accessing a > kernel-proper global variable. Create an nVHE symbol of the same name > and copy the value from kernel proper to nVHE as KVM is being enabled > on a core. > > Done in preparation for separating percpu memory owned by kernel > proper and nVHE. > > Signed-off-by: David Brazdil > --- > arch/arm64/include/asm/kvm_mmu.h | 14 +++++++++++++- > arch/arm64/kernel/image-vars.h | 1 - > arch/arm64/kvm/arm.c | 3 +++ > arch/arm64/kvm/hyp/nvhe/switch.c | 3 +++ > 4 files changed, 19 insertions(+), 2 deletions(-) Acked-by: Will Deacon Marc: please take a look at for-next/ghostbusters on the arm64 tree, as that has the patches which remove this stuff entirely. I had to rebase the branch today because I screwed up some of the SoBs but the HEAD is now stable at 780c083a8f84. Will