Skip to content
Commit c25a6ddd authored by Alexandre Ghiti's avatar Alexandre Ghiti Committed by Anup Patel
Browse files

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: 9d05c1fe ("RISC-V: KVM: Implement stage2 page table programming")
Signed-off-by: default avatarAlexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: default avatarAnup Patel <anup@brainfault.org>
parent 4ec5183e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment