[PATCH 0/3] RISC-V: KVM: Cleanup SBI extension status when disble
From: Inochi Amaoto
Date: Wed Jul 01 2026 - 05:52:31 EST
KVM SBI FWFT extension has multiple internal state can be programmed
by the userspace. However, when the FWFT feature or the FWFT extension
is disabled, the internal state will be kept as it is, which may cause
some side effect for the vCPU, cleanup these state when a SBI extension
or FWFT feature is disabled.
Inochi Amaoto (3):
RISC-V: KVM: Add SBI extension validate callback
RISC-V: KVM: Add SBI FWFT validation support
RISC-V: KVM: Reset the SBI extension when disable it
arch/riscv/include/asm/kvm_vcpu_sbi.h | 4 ++++
arch/riscv/kvm/vcpu_config.c | 2 ++
arch/riscv/kvm/vcpu_sbi.c | 33 +++++++++++++++++++++++++++
arch/riscv/kvm/vcpu_sbi_fwft.c | 25 ++++++++++++++++++++
4 files changed, 64 insertions(+)
--
2.55.0