]> 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)
commit0f5bedf3699948d91c2792929684bdbfea6473bb
tree226370dd933638d7bf8f754aa0c59f853707255f
parentd7f81237750f02e7ae2bc2daea212abb0f08cb25
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