From nobody Fri Dec 19 20:57:00 2025 Received: from zg8tmja5ljk3lje4ms43mwaa.icoremail.net (zg8tmja5ljk3lje4ms43mwaa.icoremail.net [209.97.181.73]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BFEA1F893B for ; Wed, 8 Jan 2025 10:39:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.97.181.73 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736332782; cv=none; b=icB/u4pdtBF8hoE0/iHXKDhKTrR+quVFv2XcQ2GbYjm8TEndg3XsWdkb+UWvts/7mk+vp9U9/FOROBkEm0g3M8dCEw3oOBh9cRiyhMquY+bNbEdu34YeALWDShkkHmJExEUKmdwR4ei9c1Ria0wLEBtsR+TfQ8MORbcYGeiaPFw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736332782; c=relaxed/simple; bh=acjrDcMoWJ6xJU2TZ8b9tLNtluFVD24/dSWz3yTk7Ak=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LP7b+/0ZN/e5l8JRRU0kAquUikpsDfzKO+h8PzDfNuVJOtnaE4imlx6MlGxbXMoOmAS2s2Eahoy0WDkbeyNxlxKzi9wfGXty6aUz/wk8jhDaMJaHVTb5jZBb2F12uPU1zS52YHauCbtpVdb2rFrpN5naoEJxtX2CTABFHdSr0lM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phytium.com.cn; spf=pass smtp.mailfrom=phytium.com.cn; arc=none smtp.client-ip=209.97.181.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phytium.com.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=phytium.com.cn Received: from prodtpl.icoremail.net (unknown [10.12.1.20]) by hzbj-icmmx-6 (Coremail) with SMTP id AQAAfwDnRjzdVX5npfJEAA--.2339S2; Wed, 08 Jan 2025 18:39:25 +0800 (CST) Received: from localhost.localdomain (unknown [219.142.137.151]) by mail (Coremail) with SMTP id AQAAfwCXs6nZVX5nWEsHAA--.11445S3; Wed, 08 Jan 2025 18:39:23 +0800 (CST) From: Zhiyuan Dai To: maz@kernel.org, oliver.upton@linux.dev, catalin.marinas@arm.com Cc: joey.gouly@arm.com, uzuki.poulose@arm.com, yuzenghui@huawei.com, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, Zhiyuan Dai Subject: [PATCH] KVM: arm64: vgic: Update some comments to improve the code readability Date: Wed, 8 Jan 2025 18:39:19 +0800 Message-ID: <20250108103919.66572-1-daizhiyuan@phytium.com.cn> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: AQAAfwCXs6nZVX5nWEsHAA--.11445S3 X-CM-SenderInfo: hgdl6xpl1xt0o6sk53xlxphulrpou0/ Authentication-Results: hzbj-icmmx-6; spf=neutral smtp.mail=daizhiyuan @phytium.com.cn; X-Coremail-Antispam: 1Uk129KBjvdXoWrtw4kuFy7JFW7urykGw1ftFb_yoWDJFb_Z3 4Iqw43XayvkF12qFWq93y3u34Ig3yUJry5Wr1rZFWUJa4DZr45KF4DXF43Wr45XrWYgrsx KrZxC3yfAr1xWjkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrnU Uv73VFW2AGmfu7jjvjm3AaLaJ3UjIYCTnIWjDUYxBIdaVFxhVjvjDU0xZFpf9x0zRUUUUU UUUU= Content-Type: text/plain; charset="utf-8" This patch updates the comments in the vgic_v3_queue_sgi function to improve the readability of the code. Signed-off-by: Zhiyuan Dai --- arch/arm64/kvm/vgic/vgic-mmio-v3.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kvm/vgic/vgic-mmio-v3.c b/arch/arm64/kvm/vgic/vgic-= mmio-v3.c index ae4c0593d114..f3b328373869 100644 --- a/arch/arm64/kvm/vgic/vgic-mmio-v3.c +++ b/arch/arm64/kvm/vgic/vgic-mmio-v3.c @@ -1040,8 +1040,13 @@ static void vgic_v3_queue_sgi(struct kvm_vcpu *vcpu,= u32 sgi, bool allow_group1) irq->pending_latch =3D true; vgic_queue_irq_unlock(vcpu->kvm, irq, flags); } else { - /* HW SGI? Ask the GIC to inject it */ int err; + + /* + * With GICv4.1, vSGI can be directly injected. + * So let's pretend that they are HW interrupts, + * tied to a host IRQ. + */ err =3D irq_set_irqchip_state(irq->host_irq, IRQCHIP_STATE_PENDING, true); --=20 2.25.1