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 <michal.orzel@amd.com>
Reviewed-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Michal Orzel committed 2026-04-10 10:31:31 +02:00
1 parent f25fe2452b
commit 9af54b65a4
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.