From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BDA1C38A2A for ; Thu, 7 May 2020 16:26:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 08FC720936 for ; Thu, 7 May 2020 16:26:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726863AbgEGQ0K (ORCPT ); Thu, 7 May 2020 12:26:10 -0400 Received: from foss.arm.com ([217.140.110.172]:35230 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726470AbgEGQ0K (ORCPT ); Thu, 7 May 2020 12:26:10 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1A4B21FB; Thu, 7 May 2020 09:26:10 -0700 (PDT) Received: from [192.168.0.14] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0701C3F71F; Thu, 7 May 2020 09:26:07 -0700 (PDT) From: James Morse Subject: Re: [PATCH 09/26] KVM: arm64: vgic-v3: Take cpu_if pointer directly instead of vcpu To: Marc Zyngier , kvmarm@lists.cs.columbia.edu Cc: linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, Andre Przywara , Christoffer Dall , Dave Martin , Jintack Lim , Alexandru Elisei , George Cherian , "Zengtao (B)" , Will Deacon , Catalin Marinas , Mark Rutland , Julien Thierry , Suzuki K Poulose References: <20200422120050.3693593-1-maz@kernel.org> <20200422120050.3693593-10-maz@kernel.org> Message-ID: <3174eaad-7d8d-0c52-d71c-afc6b991b636@arm.com> Date: Thu, 7 May 2020 17:26:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200422120050.3693593-10-maz@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Hi Marc, Christoffer, On 22/04/2020 13:00, Marc Zyngier wrote: > From: Christoffer Dall > > If we move the used_lrs field to the version-specific cpu interface > structure, the following functions only operate on the struct > vgic_v3_cpu_if and not the full vcpu: > > __vgic_v3_save_state > __vgic_v3_restore_state > __vgic_v3_activate_traps > __vgic_v3_deactivate_traps > __vgic_v3_save_aprs > __vgic_v3_restore_aprs > > This is going to be very useful for nested virt, ... because you don't need to consider whether the vcpu is running in vEL2? > so move the used_lrs > field and change the prototypes and implementations of these functions to > take the cpu_if parameter directly. > No functional change. Looks like no change! Reviewed-by: James Morse Thanks, James