RE: [PATCH v5 4/5] KVM: VMX: Add the algorithm of deliver posted interrupt

2013-03-08 Thread Zhang, Yang Z
Marcelo Tosatti wrote on 2013-03-09: > On Fri, Mar 08, 2013 at 09:23:20AM +0800, Yang Zhang wrote: >> From: Yang Zhang >> >> Only deliver the posted interrupt when target vcpu is running >> and there is no previous interrupt pending in pir. >> >> Signed-off-by: Yang Zhang >> >> +static bool vm

Re: [PATCH v5 4/5] KVM: VMX: Add the algorithm of deliver posted interrupt

2013-03-08 Thread Marcelo Tosatti
On Fri, Mar 08, 2013 at 09:23:20AM +0800, Yang Zhang wrote: > From: Yang Zhang > > Only deliver the posted interrupt when target vcpu is running > and there is no previous interrupt pending in pir. > > Signed-off-by: Yang Zhang > +static bool vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu,

[PATCH v5 4/5] KVM: VMX: Add the algorithm of deliver posted interrupt

2013-03-07 Thread Yang Zhang
From: Yang Zhang Only deliver the posted interrupt when target vcpu is running and there is no previous interrupt pending in pir. Signed-off-by: Yang Zhang --- arch/x86/include/asm/kvm_host.h |3 ++ arch/x86/kvm/lapic.c| 13 arch/x86/kvm/lapic.h|1 +