Re: [PATCH v3 0/4] RISC-V: KVM: Cleanup SBI extension status when disable
Anup Patel <[email protected]> Thu, 30 Jul 2026 12:10:49 +0530
| Newsgroups | org.infradead.lists.linux-riscv,org.infradead.lists.kvm-riscv,org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAAhSdy3W5LQ_iKLgb6qLNSswgh1OOjgjyAizHZ751=yq7UQTkQ@mail.gmail.com> |
On Thu, Jul 30, 2026 at 4:55 AM Inochi Amaoto <[email protected]> wrote: > > 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. > > Change from v2: > - https://lore.kernel.org/kvm/[email protected] > patch 1, 2: > 1. Apply Anup's tag. > patch 3: > 1. Remove the csr_dirty set. > patch 4: > 1. Add a new patch that sets the csr_dirty for FWFT extension. > > Change from v1: > - https://lore.kernel.org/kvm/[email protected] > patch 2: > 1. Check support callback existed before using it. > > Inochi Amaoto (4): > 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 > RISC-V: KVM: Mark the reset callback of FWFT extension always dirties > CSR > > arch/riscv/include/asm/kvm_vcpu_sbi.h | 4 ++++ > arch/riscv/kvm/vcpu_config.c | 2 ++ > arch/riscv/kvm/vcpu_sbi.c | 30 +++++++++++++++++++++++++++ > arch/riscv/kvm/vcpu_sbi_fwft.c | 27 ++++++++++++++++++++++++ > 4 files changed, 63 insertions(+) > > -- > 2.55.0 > Queued this series for Linux-7.3 Thanks, Anup _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv