diff options
author | Atish Patra <atish.patra@wdc.com> | 2021-11-18 11:39:09 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-01-06 12:27:16 +0300 |
commit | a046c2d8578c93b85ab9272a818c821c254931d0 (patch) | |
tree | 0b9eff449695ca49a9c6d2d73fa1a74e73ba2e00 /arch/riscv/include | |
parent | cf70be9d214c3ba8dd228cb373f7dc0edfa8da6b (diff) | |
download | linux-a046c2d8578c93b85ab9272a818c821c254931d0.tar.xz |
RISC-V: KVM: Reorganize SBI code by moving SBI v0.1 to its own file
With SBI v0.2, there may be more SBI extensions in future. It makes more
sense to group related extensions in separate files. Guest kernel will
choose appropriate SBI version dynamically.
Move the existing implementation to a separate file so that it can be
removed in future without much conflict.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r-- | arch/riscv/include/asm/kvm_vcpu_sbi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/kvm_vcpu_sbi.h b/arch/riscv/include/asm/kvm_vcpu_sbi.h index 1a4cb0db2d0b..704151969ceb 100644 --- a/arch/riscv/include/asm/kvm_vcpu_sbi.h +++ b/arch/riscv/include/asm/kvm_vcpu_sbi.h @@ -25,5 +25,7 @@ struct kvm_vcpu_sbi_extension { bool *exit); }; +void kvm_riscv_vcpu_sbi_forward(struct kvm_vcpu *vcpu, struct kvm_run *run); const struct kvm_vcpu_sbi_extension *kvm_vcpu_sbi_find_ext(unsigned long extid); + #endif /* __RISCV_KVM_VCPU_SBI_H__ */ |