diff options
author | Andrew Jones <ajones@ventanamicro.com> | 2023-12-20 19:00:17 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-12-30 08:56:20 +0300 |
commit | 5fed84a800e6048656c17be6e921787db2b5c6c0 (patch) | |
tree | 141aacca524078853cbe36c1194739c785fa1076 /arch/riscv/kvm/vcpu_sbi.c | |
parent | fdf68acccfc6af9497c34ee411d89af13b6516ed (diff) | |
download | linux-5fed84a800e6048656c17be6e921787db2b5c6c0.tar.xz |
RISC-V: KVM: Add SBI STA extension skeleton
Add the files and functions needed to support the SBI STA
(steal-time accounting) extension. In the next patches we'll
complete the functions to fully enable SBI STA support.
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'arch/riscv/kvm/vcpu_sbi.c')
-rw-r--r-- | arch/riscv/kvm/vcpu_sbi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/kvm/vcpu_sbi.c b/arch/riscv/kvm/vcpu_sbi.c index dcdff4458190..088daaa23dd8 100644 --- a/arch/riscv/kvm/vcpu_sbi.c +++ b/arch/riscv/kvm/vcpu_sbi.c @@ -71,6 +71,10 @@ static const struct kvm_riscv_sbi_extension_entry sbi_ext[] = { .ext_ptr = &vcpu_sbi_ext_dbcn, }, { + .ext_idx = KVM_RISCV_SBI_EXT_STA, + .ext_ptr = &vcpu_sbi_ext_sta, + }, + { .ext_idx = KVM_RISCV_SBI_EXT_EXPERIMENTAL, .ext_ptr = &vcpu_sbi_ext_experimental, }, |