From: Will Deacon Subject: Re: [PATCH v12 2/8] arm64: KVM: encapsulate kvm_cpu_context in kvm_host_data Date: Thu, 4 Apr 2019 17:09:54 +0100 Message-ID: <20190404160954.GB27577@fuggles.cambridge.arm.com> References: <20190328103731.27264-1-andrew.murray@arm.com> <20190328103731.27264-3-andrew.murray@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 49B4A4A429 for ; Thu, 4 Apr 2019 12:10:00 -0400 (EDT) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y3uJu31I8gZe for ; Thu, 4 Apr 2019 12:09:59 -0400 (EDT) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 034D04A380 for ; Thu, 4 Apr 2019 12:09:58 -0400 (EDT) Content-Disposition: inline In-Reply-To: <20190328103731.27264-3-andrew.murray@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: Andrew Murray Cc: Marc Zyngier , Catalin Marinas , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org List-Id: kvmarm@lists.cs.columbia.edu On Thu, Mar 28, 2019 at 10:37:25AM +0000, Andrew Murray wrote: > The virt/arm core allocates a kvm_cpu_context_t percpu, at present this is > a typedef to kvm_cpu_context and is used to store host cpu context. The > kvm_cpu_context structure is also used elsewhere to hold vcpu context. > In order to use the percpu to hold additional future host information we > encapsulate kvm_cpu_context in a new structure and rename the typedef and > percpu to match. > > Signed-off-by: Andrew Murray > --- > arch/arm/include/asm/kvm_host.h | 8 ++++++-- > arch/arm64/include/asm/kvm_asm.h | 3 ++- > arch/arm64/include/asm/kvm_host.h | 16 ++++++++++------ > arch/arm64/kernel/asm-offsets.c | 1 + > virt/kvm/arm/arm.c | 14 ++++++++------ > 5 files changed, 27 insertions(+), 15 deletions(-) As per usual, I'll need an Ack from Christoffer and/or Marc on this one :) Will