From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sinmsgout02.his.huawei.com (sinmsgout02.his.huawei.com [119.8.177.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A25A2236E8 for ; Mon, 12 Jan 2026 14:44:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=119.8.177.37 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768229096; cv=none; b=O++50eoI6fY7InE12VpAHz2GJ8VPhkvAxrOeVLE583tBOUNIjlr5ZNED1RwKOU2Oi80WhKFJ1mqj8U0sJm9Oin/qUm3FCiycgyL3g1DJWaQ9Xnxp3QsGfhpLMlk6lGnQ3ytFMXQyZoSGMuCEzVLZzgRZbkqiWX+1H3fHZE6VBqQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768229096; c=relaxed/simple; bh=VnwkMIIgaEYSLedyuxgc9yYxRRqLv1xIN7vb5KkFceI=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fwDLGGDRi3YzEVR0cvw40PA8Sa6SwZ4u/dMVooKCmM4DlT5qiqm+tJfEm17mE8pjNJNDQYdm+6AzkGmfGB/Nn6Rn7BOf0QMkC67PHDK4ArCaYSEGzIy+z2FZXyjldrd6RXf5U1LPeZKfnYbLb1zma3uIt4oH50RJhLLJW5aezhQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=jiHuwV+S; arc=none smtp.client-ip=119.8.177.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="jiHuwV+S" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=vMnk2nrwaBQSLtVwuvjNTQsDRNVJoNxtkl+t1xXaVJg=; b=jiHuwV+SzxDsOQWNeyZNje1+9aHNrJNLTQJEJ4mqXMshZ+h7XxymWNC4kgMjpTG985x00TI89 HTA5KX9uLSTmZ+E8iLFye8iQ5NOjaEQM83Fv1Kxm0EwBpDCL3tVtOHizYfu8u1OAUz14/hcuYil XovRTzfDuACht55m71ScaHw= Received: from frasgout.his.huawei.com (unknown [172.18.146.33]) by sinmsgout02.his.huawei.com (SkyGuard) with ESMTPS id 4dqZpz5HTZz1vny8; Mon, 12 Jan 2026 22:42:35 +0800 (CST) Received: from mail.maildlp.com (unknown [172.18.224.150]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4dqZsJ4XlxzJ467H; Mon, 12 Jan 2026 22:44:36 +0800 (CST) Received: from dubpeml100005.china.huawei.com (unknown [7.214.146.113]) by mail.maildlp.com (Postfix) with ESMTPS id 2884D40539; Mon, 12 Jan 2026 22:44:48 +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; Mon, 12 Jan 2026 14:44:47 +0000 Date: Mon, 12 Jan 2026 14:44:46 +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 v3 08/36] KVM: arm64: gic: Introduce interrupt type helpers Message-ID: <20260112144446.000064d1@huawei.com> In-Reply-To: <20260109170400.1585048-9-sascha.bischoff@arm.com> References: <20260109170400.1585048-1-sascha.bischoff@arm.com> <20260109170400.1585048-9-sascha.bischoff@arm.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500011.china.huawei.com (7.191.174.215) To dubpeml100005.china.huawei.com (7.214.146.113) On Fri, 9 Jan 2026 17:04:41 +0000 Sascha Bischoff wrote: > GICv5 has moved from using interrupt ranges for different interrupt > types to using some of the upper bits of the interrupt ID to denote > the interrupt type. This is not compatible with older GICs (which rely > on ranges of interrupts to determine the type), and hence a set of > helpers is introduced. These helpers take a struct kvm*, and use the > vgic model to determine how to interpret the interrupt ID. > > Helpers are introduced for PPIs, SPIs, and LPIs. Additionally, a > helper is introduced to determine if an interrupt is private - SGIs > and PPIs for older GICs, and PPIs only for GICv5. > > The helpers are plumbed into the core vgic code, as well as the Arch > Timer and PMU code. > > There should be no functional changes as part of this change. > > Signed-off-by: Sascha Bischoff > Reviewed-by: Joey Gouly Reviewed-by: Jonathan Cameron