Skip to content

RISC-V KVM gstage page table dumper

Dylan.Wu kvm kvm-riscv linux-riscv lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v23 patches 0 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Split the first patch into two as requested by Paul Walmsley:
Patch 1 now only creates ptdump.h and moves declarations there with no functional changes (structures moved verbatim). Patch 2 handles the structure renames and per-level attribute bit parsing logic.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3riscv: ptdump: Create ptdump.h and move declarationsarch/riscv/include/asm/ptdump.h arch/riscv/mm/ptdump.c+44 -400 replies
2/3riscv: ptdump: Use per-level attribute bits for parsingarch/riscv/include/asm/ptdump.h arch/riscv/mm/ptdump.c+44 -270 replies
3/3KVM: riscv: Register ptdump with debugfs on guest creationarch/riscv/kvm/Kconfig arch/riscv/kvm/Makefile arch/riscv/kvm/ptdump.c+190 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] RISC-V KVM gstage page table dumper

This series adds support for dumping RISC-V KVM gstage (second-stage) page tables via debugfs, allowing inspection of the guest physical address translation setup.

Changes since v2:
- Split the first patch into two as requested by Paul Walmsley:
Patch 1 now only creates ptdump.h and moves declarations there with no functional changes (structures moved verbatim). Patch 2 handles the structure renames and per-level attribute bit parsing logic.

Patch 1: Create ptdump.h and move declarations
Patch 2: Use per-level attribute bits for parsing Patch 3: Register gstage ptdump with debugfs on guest creation

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 |  43 ++++++++
 arch/riscv/kvm/Kconfig          |  12 +++
 arch/riscv/kvm/Makefile         |   1 +
 arch/riscv/kvm/ptdump.c         | 177 ++++++++++++++++++++++++++++++++
 arch/riscv/mm/ptdump.c          | 106 ++++++++-----------
 5 files changed, 275 insertions(+), 64 deletions(-)
 create mode 100644 arch/riscv/include/asm/ptdump.h
 create mode 100644 arch/riscv/kvm/ptdump.c
Signature · 1 line
2.34.1