]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9c1536215fbb5fa1fc3fd715753645418a39d34
tree171418c2adb92850ff3e3de7bc3fc914efa17dd9
parentbc110c73c763c8b2c07934830e938d67aa7e9cc9
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