Skip to content
Commit 106e2ea7 authored by Anup Patel's avatar Anup Patel Committed by Will Deacon
Browse files

riscv: Fix guest RAM alloc size computation for RV32



Currently, we ensure that guest RAM alloc size is at least 2M for
THP which works well for RV64 but breaks hugepage support for RV32.
To fix this, we use 4M as hugepage size for RV32.

Fixes: 867159a7 ("riscv: Implement Guest/VM arch functions")
Signed-off-by: default avatarAnup Patel <apatel@ventanamicro.com>
Link: https://lore.kernel.org/r/20230712163501.1769737-10-apatel@ventanamicro.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 8659200f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment