summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorJinyu Tang <jinyu.tang@linux.dev>2026-08-14 07:45:05 -0400
committerAnup Patel <anup@brainfault.org>2026-10-03 15:07:54 +0530
commite8b32e3779513e9ceed73f09c3f53db423140193 (patch)
tree688b33baa72487a987bfdcd4f0cb36ffb4dbe628 /tools/perf/scripts/python/bin/stackcollapse-report
parenta84c5e0c31462588d2ec0fba17d9380ed9be6fcf (diff)
KVM: riscv: Implement KVM_PRE_FAULT_MEMORY
The generic KVM_PRE_FAULT_MEMORY ioctl lets userspace populate KVM page tables before running a vCPU over a GPA range. x86 already supports the ioctl, but RISC-V does not expose the capability and has no arch hook. Add the RISC-V arch hook and reuse the existing G-stage fault mapping path with a read access. Report progress using the G-stage mapping returned by the map path, so the ioctl can advance by the actual leaf size that covers the requested GPA. Retry until a mapping is installed or a signal, VM-dead request, or real error is observed. Signed-off-by: Jinyu Tang <jinyu.tang@linux.dev> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260814114507.583424-2-jinyu.tang@linux.dev Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions