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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 53B09CFD621 for ; Wed, 7 Jan 2026 12:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:CC:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Dj6UfPJfB6pGRAhSwf9NayQstkd63pLUii227xs7tgU=; b=PzZI4VetEKJuaGGRmnbXbFTb59 ffrN5Dhuf30oaxeJOUu0TfRYaz6OF+sJFlCXiCKaDEMYeXjYD3suFOmP9WLs0/WbIcKUEaEowP+yj DmhxSgkEUHXPaXzwqrBdY5+xApmuXD2bwuO85xPE6VCTUIVW2QlcMerR52cruGk3sDLyeDFWVAs5E mkBb8k2l1BVm/QQtg/2oqlImmJrEVhuxx1WLKPSs8uf4Yp1Zm6z3+PysgnZRL5O8Jk1SfK5JlMknh C4NS1nDOjsW6WWFuj8y2ybizqyaVUpiGRYLRA3UcodxXMWfwtUzPQrdcaPeWk2RZeYRlzQ5Onn28m NmcbcYsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vdSf4-0000000EuLG-3yip; Wed, 07 Jan 2026 12:29:14 +0000 Received: from sinmsgout01.his.huawei.com ([119.8.177.36]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vdSf1-0000000EuKp-2SDo for linux-arm-kernel@lists.infradead.org; Wed, 07 Jan 2026 12:29:13 +0000 dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=Dj6UfPJfB6pGRAhSwf9NayQstkd63pLUii227xs7tgU=; b=q9N3uFMYnsif4vSvN4HobhRe4RqLxBvrzgOayPb1BqFgTC5hvm/lInUjmr4agrRAElQ2fJMDN BN66A4ozyvMKXlQZy6jh1vDVtSL2MOT95MGpqMb1BUtHemdvBoPa7aBMoqDYqwIyrIXV1LGt+7V TtRrKkv085GuIKf6n4frqMk= Received: from frasgout.his.huawei.com (unknown [172.18.146.33]) by sinmsgout01.his.huawei.com (SkyGuard) with ESMTPS id 4dmS2K2Gqlz1P6ht; Wed, 7 Jan 2026 20:26:33 +0800 (CST) Received: from mail.maildlp.com (unknown [172.18.224.107]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4dmS511pmFzJ46Zl; Wed, 7 Jan 2026 20:28:53 +0800 (CST) Received: from dubpeml100005.china.huawei.com (unknown [7.214.146.113]) by mail.maildlp.com (Postfix) with ESMTPS id 6E03440570; Wed, 7 Jan 2026 20:28:56 +0800 (CST) Received: from localhost (10.203.177.15) by dubpeml100005.china.huawei.com (7.214.146.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Wed, 7 Jan 2026 12:28:55 +0000 Date: Wed, 7 Jan 2026 12:28:53 +0000 From: Jonathan Cameron To: Sascha Bischoff CC: "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.linux.dev" , "kvm@vger.kernel.org" , nd , "maz@kernel.org" , "oliver.upton@linux.dev" , Joey Gouly , Suzuki Poulose , "yuzenghui@huawei.com" , "peter.maydell@linaro.org" , "lpieralisi@kernel.org" , Timothy Hayes Subject: Re: [PATCH v2 15/36] KVM: arm64: gic-v5: Implement GICv5 load/put and save/restore Message-ID: <20260107122853.0000131c@huawei.com> In-Reply-To: <20251219155222.1383109-16-sascha.bischoff@arm.com> References: <20251219155222.1383109-1-sascha.bischoff@arm.com> <20251219155222.1383109-16-sascha.bischoff@arm.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.203.177.15] X-ClientProxiedBy: lhrpeml500011.china.huawei.com (7.191.174.215) To dubpeml100005.china.huawei.com (7.214.146.113) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260107_042912_130491_44A69875 X-CRM114-Status: GOOD ( 16.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 19 Dec 2025 15:52:41 +0000 Sascha Bischoff wrote: > This change introduces GICv5 load/put. Additionally, it plumbs in > save/restore for: > > * PPIs (ICH_PPI_x_EL2 regs) > * ICH_VMCR_EL2 > * ICH_APR_EL2 > * ICC_ICSR_EL1 > > A GICv5-specific enable bit is added to struct vgic_vmcr as this > differs from previous GICs. On GICv5-native systems, the VMCR only > contains the enable bit (driven by the guest via ICC_CR0_EL1.EN) and > the priority mask (PCR). > > A struct gicv5_vpe is also introduced. This currently only contains a > single field - bool resident - which is used to track if a VPE is > currently running or not, and is used to avoid a case of double load > or double put on the WFI path for a vCPU. This struct will be extended > as additional GICv5 support is merged, specifically for VPE doorbells. > > Co-authored-by: Timothy Hayes > Signed-off-by: Timothy Hayes > Signed-off-by: Sascha Bischoff > diff --git a/arch/arm64/kvm/vgic/vgic-v5.c b/arch/arm64/kvm/vgic/vgic-v5.c > index 1fe1790f1f874..168447ee3fbed 100644 > --- a/arch/arm64/kvm/vgic/vgic-v5.c > +++ b/arch/arm64/kvm/vgic/vgic-v5.c > @@ -1,4 +1,7 @@ > // SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (C) 2025 Arm Ltd. > + */ Why in this patch? It's trivial enough that maybe it doesn't need to be on it's own, but the first patch touching this file seems like a more logical place to find it.