]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc110c73c763c8b2c07934830e938d67aa7e9cc9
tree17777b48d4b91da4f2ccb4c66ad2542ec55d10dc
parent7d2150179bff1abe8574b985d06731281819fef6
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