summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYong-Xuan Wang <yongxuan.wang@sifive.com>2026-06-01 13:26:23 +0300
committerAnup Patel <anup@brainfault.org>2026-06-05 19:08:58 +0300
commit86957e5b4bff60c2f97d79c922e5dfafe0d94151 (patch)
tree6f7b836b6853f54ea5db7ec144ebb03e72901686 /scripts
parent63224b02748ddc6ee0ad0ee691768151da4a752d (diff)
downloadlinux-86957e5b4bff60c2f97d79c922e5dfafe0d94151.tar.xz
KVM: RISC-V: SBI FWFT: Add optional init() callback for hardware probing
Add an optional init() callback to separate one-time hardware probing from runtime availability checks. For pointer masking, this allows probing supported PMM lengths during initialization while checking ISA extension availability at runtime. Fix try_to_set_pmm() to restore the previous HENVCFG.PMM value after probing, preventing side effects from hardware detection. Add preemption protection to ensure CSR probe sequences complete atomically on the same CPU. Fixes: 6f576fc0aeb9 ("RISC-V: KVM: Add support for SBI_FWFT_POINTER_MASKING_PMLEN") Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260601-kvm-get_reg_list-v2-v5-2-415d08a2813b@sifive.com Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions