summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorYicong Yang <yang.yicong@picoheart.com>2026-08-04 21:40:18 +0800
committerAnup Patel <anup@brainfault.org>2026-09-15 18:55:51 +0530
commit52c6b7d20d3e791a9e75aa2be2a467990154c7cd (patch)
tree26732815e9d50edd56aa450d85e031550859ba92 /tools/perf/scripts/python/task-analyzer.py
parentaaad136d56d91252517272b68cd533e5714698d5 (diff)
downloadlinux-next-52c6b7d20d3e791a9e75aa2be2a467990154c7cd.tar.gz
linux-next-52c6b7d20d3e791a9e75aa2be2a467990154c7cd.zip
RISC-V: KVM: Fix the conversion between vsip and hvip
Per AIA spec 1.0 Section 6.3.2, the interrupt numbers 13-63 shares same bit position between related VS shadow CSRs and hypervisor CSRs. So there's a shift only for SSI, STI and SEI interrupt. Currently the KVM always does a shift for all the interrupts (include LCOFI with number 13) when doing the conversion between vsip and hvip. Fix this by only doing shift the SSI, STI and SEI. Add wrappers for doing the conversion between vsip and hvip. Fixes: 16b0bde9a37c ("RISC-V: KVM: Add perf sampling support for guests") Signed-off-by: Yicong Yang <yang.yicong@picoheart.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260804134018.85497-1-yang.yicong@picoheart.com Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions