]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: KVM: Implement SBI HSM suspend call
authorAnup Patel <apatel@ventanamicro.com>
Mon, 31 Jan 2022 07:01:36 +0000 (12:31 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 11 Mar 2022 13:32:39 +0000 (19:02 +0530)
commit92d7078b2a5ee48c9b96b48fe34e79c9b7b0bac1
tree226370dd933638d7bf8f754aa0c59f853707255f
parent6ea33dd5b8a92304a57536410ba467eb7b17e3b2
RISC-V: KVM: Implement SBI HSM suspend call

The SBI v0.3 specification extends SBI HSM extension by adding SBI HSM
suspend call and related HART states. This patch extends the KVM RISC-V
HSM implementation to provide KVM guest a minimal SBI HSM suspend call
which is equivalent to a WFI instruction.

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_hsm.c