mbox series

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

Message ID 20230426171328.69663-1-ajones@ventanamicro.com (mailing list archive)
Headers show
Series RISC-V: KVM: Ensure SBI extension is enabled | expand

Message

Andrew Jones April 26, 2023, 5:13 p.m. UTC
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(-)