diff options
author | Alexandre Ghiti <alexghiti@rivosinc.com> | 2023-01-23 10:29:28 +0100 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-02-07 16:05:24 +0100 |
commit | c25a6dddc62c84f50e57094bd44e7f9d84907f49 (patch) | |
tree | 63f77263a83bb0c2a8000ad9f28420aab0fb6a20 /drivers/mfd | |
parent | Linux 6.2-rc7 (diff) | |
download | linux-c25a6dddc62c84f50e57094bd44e7f9d84907f49.tar.xz linux-c25a6dddc62c84f50e57094bd44e7f9d84907f49.zip |
KVM: RISC-V: Fix wrong usage of PGDIR_SIZE to check page sizes
At the moment, riscv only supports PMD and PUD hugepages. For sv39,
PGDIR_SIZE == PUD_SIZE but not for sv48 and sv57. So fix this by changing
PGDIR_SIZE into PUD_SIZE.
Fixes: 9d05c1fee837 ("RISC-V: KVM: Implement stage2 page table programming")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'drivers/mfd')
0 files changed, 0 insertions, 0 deletions