summaryrefslogtreecommitdiff
path: root/arch/riscv/kvm/vcpu_sbi_hsm.c
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2022-01-31 11:59:44 +0530
committerAnup Patel <anup@brainfault.org>2022-03-11 19:02:37 +0530
commitc9d3b5bd2693a17f078b1d8bdca440db5baa458c (patch)
tree5a84d67ff39189b70f503d1acd5a18002e651909 /arch/riscv/kvm/vcpu_sbi_hsm.c
parentc38ff47bf094dc776ad4b586e47c4a7077a94f28 (diff)
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>
Diffstat (limited to 'arch/riscv/kvm/vcpu_sbi_hsm.c')
0 files changed, 0 insertions, 0 deletions