RISC-V: KVM: Add common kvm_riscv_vcpu_sbi_system_reset() function
authorAnup Patel <apatel@ventanamicro.com>
Mon, 31 Jan 2022 04:59:31 +0000 (10:29 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 11 Mar 2022 13:32:29 +0000 (19:02 +0530)
commit4b11d86571c44738f5ef12fcfac2ee36f998cf23
tree17777b48d4b91da4f2ccb4c66ad2542ec55d10dc
parenta03faf01a5e32012172a41f5f9d5f02d1cc93ccf
RISC-V: KVM: Add common kvm_riscv_vcpu_sbi_system_reset() function

We rename kvm_sbi_system_shutdown() to kvm_riscv_vcpu_sbi_system_reset()
and move it to vcpu_sbi.c so that it can be shared by SBI v0.1 shutdown
and SBI v0.3 SRST extension.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_vcpu_sbi.h
arch/riscv/kvm/vcpu_sbi.c
arch/riscv/kvm/vcpu_sbi_v01.c