aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-01-15 14:04:06 +0000
committerMark Johnston <markj@FreeBSD.org>2026-01-15 14:04:06 +0000
commit6fef0c9ee64cea1f22b6a33a0c4dd39f605b7465 (patch)
tree7b052a159d1f8597d66246effddbaab8722eeccb
parent251662e5abdd85f5a83766b400e23c2ac5597fb9 (diff)
arm64/vgic_v3: Fix an inverted test when reading GICD_I<C|S>ENABLER
On read, these registers' fields return 1 if forwarding of the corresponding interrupt is enabled, and 0 otherwise. The test in read_enabler() was inverted. Reported by: Kevin Day <kevin@your.org> Reviewed by: andrew MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54678
-rw-r--r--sys/arm64/vmm/io/vgic_v3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/vmm/io/vgic_v3.c b/sys/arm64/vmm/io/vgic_v3.c
index 22cd06b09d7d..199749c12b9f 100644
--- a/sys/arm64/vmm/io/vgic_v3.c
+++ b/sys/arm64/vmm/io/vgic_v3.c
@@ -672,7 +672,7 @@ read_enabler(struct hypctx *hypctx, int n)
if (irq == NULL)
continue;
- if (!irq->enabled)
+ if (irq->enabled)
ret |= 1u << i;
vgic_v3_release_irq(irq);
}