RISC-V: KVM: Reorganize SBI code by moving SBI v0.1 to its own file
authorAtish Patra <atish.patra@wdc.com>
Thu, 18 Nov 2021 08:39:09 +0000 (00:39 -0800)
committerAnup Patel <anup@brainfault.org>
Thu, 6 Jan 2022 09:27:16 +0000 (14:57 +0530)
commita046c2d8578c93b85ab9272a818c821c254931d0
tree0b9eff449695ca49a9c6d2d73fa1a74e73ba2e00
parentcf70be9d214c3ba8dd228cb373f7dc0edfa8da6b
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>
arch/riscv/include/asm/kvm_vcpu_sbi.h
arch/riscv/kvm/Makefile
arch/riscv/kvm/vcpu_sbi.c
arch/riscv/kvm/vcpu_sbi_v01.c [new file with mode: 0644]