]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3e93aa5023c2d076a60d9960ef82b71cf6f8081
tree0b9eff449695ca49a9c6d2d73fa1a74e73ba2e00
parent162d608ea07699c2ff22ec87f8e65a5a0c627e35
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]