[PATCH 0/3] RISC-V: KVM: Ensure SBI extension is enabled

Andrew Jones ajones at ventanamicro.com
Wed Apr 26 10:13:25 PDT 2023


Ensure guests can't attempt to invoke SBI extension functions when the
SBI extension's probe function has stated that the extension is not
available.

Andrew Jones (3):
  RISC-V: KVM: Disable SBI extension when its probe fails
  RISC-V: KVM: Rename dis_idx to ext_idx
  RISC-V: KVM: Introduce extension_enabled

 arch/riscv/include/asm/kvm_vcpu_sbi.h |  9 ++++
 arch/riscv/kvm/vcpu_sbi.c             | 62 +++++++++++++++++----------
 2 files changed, 48 insertions(+), 23 deletions(-)

-- 
2.39.2




More information about the linux-riscv mailing list