]> 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)
commita238a419179d87fd9db272b17b9b9f40003452a4
tree171418c2adb92850ff3e3de7bc3fc914efa17dd9
parente0a2cbe0345816704ed55b7933534d5daa94812e
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