diff options
| author | Mostafa Saleh <smostafa@google.com> | 2026-11-06 17:27:49 +0000 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-11-11 09:37:04 +0000 |
| commit | d41bb3229ce8f573fd1f9d56e946604cb14324b0 (patch) | |
| tree | c8451d288632eab50c20c502deb539e2513540d8 /scripts/Makefile.thinlto | |
| parent | 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff) | |
KVM: arm64: Use consistent type for pool size
All the pool sizes in the hypervisor are "unsigned long" but when
they get passed to hyp_early_alloc_contig() or hyp_pool_init() they get
truncated to 32-bits.
That is not a big problem at the moment as to overflow this we need
4G bytes of carveout (2 TB of host or guest system memory).
However when new users are added (as IOMMU) it is hard to reason
about the carveout size anymore.
Fixes: e75960408723 ("KVM: arm64: Introduce an early Hyp page allocator")
Fixes: 8e17c66249e9 ("KVM: arm64: Introduce a Hyp buddy page allocator")
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Mostafa Saleh <smostafa@google.com>
Reviewed-by: Oliver Upton <oupton@kernel.org>
Link: https://patch.msgid.link/20261106172750.2678873-1-smostafa@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
