commit | 106e2ea7756d980454d68631b87d5e25ba4e4881 | [log] [tgz] |
---|---|---|
author | Anup Patel <apatel@ventanamicro.com> | Wed Jul 12 22:05:01 2023 +0530 |
committer | Will Deacon <will@kernel.org> | Thu Jul 20 15:59:29 2023 +0100 |
tree | c3448a80d197b55ae977bd1d6cf67ce8acab229f | |
parent | 8659200f69310e1f0e9cea70ae0fd65b363f6c4e [diff] |
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: 867159a7963b ("riscv: Implement Guest/VM arch functions") Signed-off-by: Anup Patel <apatel@ventanamicro.com> Link: https://lore.kernel.org/r/20230712163501.1769737-10-apatel@ventanamicro.com Signed-off-by: Will Deacon <will@kernel.org>