Files
xen/xen
Michal Orzel d6a6ea77e1 static-memory: Fix incorrect tot_size calculation
When a physical memory bank spans multiple guest RAM banks, the variable
psize is modified inside the allocation loop, but the modified value
(instead of the original bank size) is added to tot_size. This causes an
incorrect total size calculation leading to false panic. Move the
tot_size calculation right after acquire_static_memory_bank().

Fixes: 487975df53 ("xen/arm: introduce allocate_static_memory")
Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
2026-02-05 09:34:53 +01:00
..
2026-01-22 19:42:36 +00:00
2026-02-04 15:42:23 -08:00
2026-01-26 10:34:14 +01:00
2024-07-22 16:25:07 +01:00
2025-11-24 15:17:39 +00:00