diff options
author | Anup Patel <anup.patel@wdc.com> | 2021-09-27 13:40:07 +0200 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-10-04 12:25:01 +0200 |
commit | 5a5d79acd7daebeb813a7c0654ca91c5ea7c228e (patch) | |
tree | eb389e40031e2ab24b9d4244f52d4e4a9b7268ef /arch/riscv/kvm/Makefile | |
parent | RISC-V: KVM: Handle MMIO exits for VCPU (diff) | |
download | linux-5a5d79acd7daebeb813a7c0654ca91c5ea7c228e.tar.xz linux-5a5d79acd7daebeb813a7c0654ca91c5ea7c228e.zip |
RISC-V: KVM: Handle WFI exits for VCPU
We get illegal instruction trap whenever Guest/VM executes WFI
instruction.
This patch handles WFI trap by blocking the trapped VCPU using
kvm_vcpu_block() API. The blocked VCPU will be automatically
resumed whenever a VCPU interrupt is injected from user-space
or from in-kernel IRQCHIP emulation.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/kvm/Makefile')
0 files changed, 0 insertions, 0 deletions