]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RISC-V: KVM: Add support for SBI_FWFT_POINTER_MASKING_PMLEN
authorSamuel Holland <samuel.holland@sifive.com>
Sat, 11 Jan 2025 00:46:59 +0000 (16:46 -0800)
committerAnup Patel <anup@brainfault.org>
Tue, 16 Sep 2025 05:23:03 +0000 (10:53 +0530)
commit6f576fc0aeb9072ac17630a58e693de0488f9ce3
treeadebcbc7b16b8f408dafc66dba94714063798f39
parentbb053f816a8bcb0a9135fc4cc611b1cab3d82201
RISC-V: KVM: Add support for SBI_FWFT_POINTER_MASKING_PMLEN

Pointer masking is controlled through a WARL field in henvcfg. Expose
the feature only if at least one PMLEN value is supported for VS-mode.
Allow the VMM to block access to the feature by disabling the Smnpm ISA
extension in the guest.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20250111004702.2813013-3-samuel.holland@sifive.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_vcpu_sbi_fwft.h
arch/riscv/kvm/vcpu_onereg.c
arch/riscv/kvm/vcpu_sbi_fwft.c