RISC-V: KVM: Implement SBI v0.3 SRST extension
authorAnup Patel <apatel@ventanamicro.com>
Mon, 31 Jan 2022 05:23:13 +0000 (10:53 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 11 Mar 2022 13:32:31 +0000 (19:02 +0530)
commitbe78aa8a38c8dc5c9676612c36329441132bccab
tree171418c2adb92850ff3e3de7bc3fc914efa17dd9
parent4b11d86571c44738f5ef12fcfac2ee36f998cf23
RISC-V: KVM: Implement SBI v0.3 SRST extension

The SBI v0.3 specification defines SRST (System Reset) extension which
provides a standard poweroff and reboot interface. This patch implements
SRST extension for the KVM Guest.

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/kvm/vcpu_sbi.c
arch/riscv/kvm/vcpu_sbi_replace.c