summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorZhanpeng Zhang <zhangzhanpeng.jasper@bytedance.com>2026-09-22 10:18:24 +0800
committerAnup Patel <anup@brainfault.org>2026-10-10 00:00:20 +0530
commit2ddd9c19780f60a4251f8bfd447efe811e62811b (patch)
treea45ac2559229506ea1ee339b30659b9b5676c8da /tools/perf/scripts/python/bin/stackcollapse-report
parenta01f4c27a6ff5133408952aefd6289584a67ca67 (diff)
RISC-V: KVM: Fix build with vector support disabled
The kernel-mode vector context handling added unconditional calls to get_cpu_vector_context(), put_cpu_vector_context() and __kvm_riscv_vector_restore() in vcpu.c. With CONFIG_RISCV_ISA_V=n, these calls fail to build due to missing declarations. The get/put helpers already have no-op definitions in asm/vector.h, but kvm_vcpu_vector.h only includes that header when CONFIG_RISCV_ISA_V is enabled. Include it unconditionally and provide a no-op implementation of __kvm_riscv_vector_restore() for the disabled configuration, matching the other vector context helpers. The paths that set RISCV_V_VCPU_NEED_RESTORE are compiled out when vector support is disabled, so the restore stub does not discard any live vector state. Keep it __always_inline for its noinstr caller. The vector enabled implementation is unchanged. Fixes: b5060a4aa33d ("RISC-V: KVM: fix vcpu vector context handling for kernel-mode vector") Signed-off-by: Zhanpeng Zhang <zhangzhanpeng.jasper@bytedance.com> Reviewed-by: Charlie Jenkins <thecharlesjenkins@gmail.com> Tested-by: Charlie Jenkins <thecharlesjenkins@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260922021823.44251-2-zhangzhanpeng.jasper@bytedance.com 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