[PATCH v2 0/3] riscv: ptdump: Refactor for KVM gstage ptdump support
"Dylan.Wu" <[email protected]> Mon, 27 Jul 2026 08:30:10 -0400
| Newsgroups | org.infradead.lists.kvm-riscv,org.infradead.lists.linux-riscv,org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
This is v2 of the series to add KVM gstage ptdump support for RISC-V. Changes from v1 (https://lore.kernel.org/linux-riscv/[email protected]/): - Split patch 1 into two patches as requested by Paul Walmsley: * Patch 1/3: Create ptdump.h header, move declarations there, and export note_page() * Patch 2/3: Make attribute parsing use per-level bits configuration, and rename local pg_level[] to kernel_pg_levels[] - Added CONFIG_PTDUMP_GSTAGE_DEBUGFS Kconfig option - Replaced custom walk logic with ptdump_walk_pgd() reuse - Removed incorrect copyright headers from arch/riscv/kvm/ptdump.c - Fixed Makefile ordering (alphabetical, under conditional Kconfig) Dylan.Wu (3): riscv: ptdump: Create ptdump.h and move declarations riscv: ptdump: Use per-level attribute bits for parsing KVM: riscv: Register ptdump with debugfs on guest creation arch/riscv/include/asm/ptdump.h | 42 +++++ arch/riscv/kvm/Kconfig | 15 ++ arch/riscv/kvm/Makefile | 1 + arch/riscv/kvm/ptdump.c | 276 ++++++++++++++++++++++++++++++++ arch/riscv/mm/ptdump.c | 106 +++++------- 5 files changed, 376 insertions(+), 64 deletions(-) create mode 100644 arch/riscv/include/asm/ptdump.h create mode 100644 arch/riscv/kvm/ptdump.c -- 2.34.1 -- kvm-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kvm-riscv