diff options
| author | Jinyu Tang <jinyu.tang@linux.dev> | 2026-08-14 07:45:06 -0400 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-10-03 15:08:14 +0530 |
| commit | 0971048f467ef2f52f8e05ab4488705e27f9024e (patch) | |
| tree | da691060d4ba3110b70bc6e398f00c1f95f0b6d7 /tools/perf/scripts/python/flamegraph.py | |
| parent | e8b32e3779513e9ceed73f09c3f53db423140193 (diff) | |
KVM: selftests: Add RISC-V Sv57 page table indexing
RISC-V selftests can create guests with five page-table levels, for
example when the selected guest mode is Sv57. The RISC-V page-table
walker only had index arrays for levels 0 through 3, so
virt_arch_pg_map() indexed past the end of the arrays when level 4 was
used.
Add the missing L4 index mask and shift so selftests can build guest
page tables for Sv57 VMs.
Reviewed-by: Nutty Liu <nutty.liu@hotmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Jinyu Tang <jinyu.tang@linux.dev>
Link: https://lore.kernel.org/r/20260814114507.583424-3-jinyu.tang@linux.dev
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
