mbox series

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

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

Message

Andrew Jones May 30, 2023, 5:50 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.

v3:
 - used lowercase for enum

v2:
 - Reworked it to use an enum array instead of two boolean arrays

Andrew Jones (3):
  RISC-V: KVM: Rename dis_idx to ext_idx
  RISC-V: KVM: Convert extension_disabled[] to ext_status[]
  RISC-V: KVM: Probe for SBI extension status

 arch/riscv/include/asm/kvm_vcpu_sbi.h |  8 ++-
 arch/riscv/kvm/vcpu_sbi.c             | 76 +++++++++++++++++++--------
 2 files changed, 60 insertions(+), 24 deletions(-)

Comments

Anup Patel June 6, 2023, 3:58 a.m. UTC | #1
On Tue, May 30, 2023 at 11:20 PM Andrew Jones <ajones@ventanamicro.com> wrote:
>
> 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.
>
> v3:
>  - used lowercase for enum
>
> v2:
>  - Reworked it to use an enum array instead of two boolean arrays
>
> Andrew Jones (3):
>   RISC-V: KVM: Rename dis_idx to ext_idx
>   RISC-V: KVM: Convert extension_disabled[] to ext_status[]
>   RISC-V: KVM: Probe for SBI extension status

Queued this series for 6.5

Thanks,
Anup

>
>  arch/riscv/include/asm/kvm_vcpu_sbi.h |  8 ++-
>  arch/riscv/kvm/vcpu_sbi.c             | 76 +++++++++++++++++++--------
>  2 files changed, 60 insertions(+), 24 deletions(-)
>
> --
> 2.40.1
>