From 9af54b65a4272e438d6b8508eb8d0749506856c3 Mon Sep 17 00:00:00 2001 From: Michal Orzel Date: Thu, 9 Apr 2026 13:39:34 +0200 Subject: [PATCH] xen/arm: gic-v3: Use vsize instead of csize for virtual CPU interface gicv3_iomem_deny_access() incorrectly uses csize (physical CPU interface size) instead of vsize (virtual CPU interface size) when calculating the number of pages to deny for the virtual CPU interface region at vbase. Fixes: 8300b3377e ("arm/gic: Add a new callback to deny Dom0 access to GIC regions") Signed-off-by: Michal Orzel Reviewed-by: Ayan Kumar Halder Reviewed-by: Luca Fancellu Acked-by: Stefano Stabellini --- xen/arch/arm/gic-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/gic-v3.c b/xen/arch/arm/gic-v3.c index b3e104ea4a..5641ee870f 100644 --- a/xen/arch/arm/gic-v3.c +++ b/xen/arch/arm/gic-v3.c @@ -1631,7 +1631,7 @@ static int gicv3_iomem_deny_access(struct domain *d) if ( vbase != INVALID_PADDR ) { mfn = vbase >> PAGE_SHIFT; - nr = PFN_UP(csize); + nr = PFN_UP(vsize); return iomem_deny_access(d, mfn, mfn + nr - 1); }