Re: [PATCH v7 11/21] RISC-V: KVM: Handle WFI exits for VCPU

2019-09-23 Thread Anup Patel
On Mon, Sep 23, 2019 at 12:24 PM Alexander Graf wrote: > > > > On 04.09.19 18:15, Anup Patel wrote: > > 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

Re: [PATCH v7 11/21] RISC-V: KVM: Handle WFI exits for VCPU

2019-09-22 Thread Alexander Graf
On 04.09.19 18:15, Anup Patel wrote: 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-s

[PATCH v7 11/21] RISC-V: KVM: Handle WFI exits for VCPU

2019-09-04 Thread Anup Patel
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.