Re: [PATCH 5/5] KVM: arm/arm64: kvm_arch_vcpu_runnable: don't miss injected irqs

2017-10-18 Thread Christoffer Dall
On Wed, Oct 18, 2017 at 3:55 PM, Andrew Jones wrote: > On Wed, Oct 18, 2017 at 03:18:43PM +0200, Christoffer Dall wrote: >> On Wed, Oct 18, 2017 at 02:13:05PM +0200, Andrew Jones wrote: >> > On Sat, Oct 14, 2017 at 09:13:35PM +0200, Christoffer Dall wrote: >> > > On Fri, Sep

Re: [PATCH 5/5] KVM: arm/arm64: kvm_arch_vcpu_runnable: don't miss injected irqs

2017-10-18 Thread Andrew Jones
On Wed, Oct 18, 2017 at 03:18:43PM +0200, Christoffer Dall wrote: > On Wed, Oct 18, 2017 at 02:13:05PM +0200, Andrew Jones wrote: > > On Sat, Oct 14, 2017 at 09:13:35PM +0200, Christoffer Dall wrote: > > > On Fri, Sep 29, 2017 at 01:30:41PM +0200, Andrew Jones wrote: > > > > When the vPMU is in

Re: [PATCH 5/5] KVM: arm/arm64: kvm_arch_vcpu_runnable: don't miss injected irqs

2017-10-18 Thread Christoffer Dall
On Wed, Oct 18, 2017 at 02:13:05PM +0200, Andrew Jones wrote: > On Sat, Oct 14, 2017 at 09:13:35PM +0200, Christoffer Dall wrote: > > On Fri, Sep 29, 2017 at 01:30:41PM +0200, Andrew Jones wrote: > > > When the vPMU is in use if a VCPU's perf event overflow handler > > > were to fire after the

Re: [PATCH 5/5] KVM: arm/arm64: kvm_arch_vcpu_runnable: don't miss injected irqs

2017-10-18 Thread Andrew Jones
On Sat, Oct 14, 2017 at 09:13:35PM +0200, Christoffer Dall wrote: > On Fri, Sep 29, 2017 at 01:30:41PM +0200, Andrew Jones wrote: > > When the vPMU is in use if a VCPU's perf event overflow handler > > were to fire after the VCPU started waiting, then the wake up > > done by the kvm_vcpu_kick()

Re: [PATCH 5/5] KVM: arm/arm64: kvm_arch_vcpu_runnable: don't miss injected irqs

2017-10-14 Thread Christoffer Dall
On Fri, Sep 29, 2017 at 01:30:41PM +0200, Andrew Jones wrote: > When the vPMU is in use if a VCPU's perf event overflow handler > were to fire after the VCPU started waiting, then the wake up > done by the kvm_vcpu_kick() call in the handler would do nothing, > as no "pmu overflow" state is

Re: [PATCH 5/5] KVM: arm/arm64: kvm_arch_vcpu_runnable: don't miss injected irqs

2017-10-10 Thread Andrew Jones
On Thu, Oct 05, 2017 at 10:37:32AM +0100, Marc Zyngier wrote: > On 29/09/17 12:30, Andrew Jones wrote: > > When the vPMU is in use if a VCPU's perf event overflow handler > > were to fire after the VCPU started waiting, then the wake up > > done by the kvm_vcpu_kick() call in the handler would do

Re: [PATCH 5/5] KVM: arm/arm64: kvm_arch_vcpu_runnable: don't miss injected irqs

2017-10-05 Thread Marc Zyngier
On 29/09/17 12:30, Andrew Jones wrote: > When the vPMU is in use if a VCPU's perf event overflow handler > were to fire after the VCPU started waiting, then the wake up > done by the kvm_vcpu_kick() call in the handler would do nothing, > as no "pmu overflow" state is checked in

[PATCH 5/5] KVM: arm/arm64: kvm_arch_vcpu_runnable: don't miss injected irqs

2017-09-29 Thread Andrew Jones
When the vPMU is in use if a VCPU's perf event overflow handler were to fire after the VCPU started waiting, then the wake up done by the kvm_vcpu_kick() call in the handler would do nothing, as no "pmu overflow" state is checked in kvm_arch_vcpu_runnable(). Fix this by checking the IRQ_PENDING