]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: KVM: Add common kvm_riscv_vcpu_wfi() function
authorAnup Patel <apatel@ventanamicro.com>
Mon, 31 Jan 2022 06:29:44 +0000 (11:59 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 11 Mar 2022 13:32:37 +0000 (19:02 +0530)
commit6ea33dd5b8a92304a57536410ba467eb7b17e3b2
tree5a84d67ff39189b70f503d1acd5a18002e651909
parentfdeb7f035db5c899bb7b4b95e3afe5e4b4845770
RISC-V: KVM: Add common kvm_riscv_vcpu_wfi() function

The wait for interrupt (WFI) instruction emulation can share the VCPU
halt logic with SBI HSM suspend emulation so this patch adds a common
kvm_riscv_vcpu_wfi() function for this purpose.

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/include/asm/kvm_host.h
arch/riscv/kvm/vcpu_exit.c