diff options
| author | Jinyu Tang <jinyu.tang@linux.dev> | 2026-08-14 07:45:05 -0400 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-10-03 15:07:54 +0530 |
| commit | e8b32e3779513e9ceed73f09c3f53db423140193 (patch) | |
| tree | 688b33baa72487a987bfdcd4f0cb36ffb4dbe628 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | a84c5e0c31462588d2ec0fba17d9380ed9be6fcf (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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
