[PATCH v1] KVM: x86: avoid redundant REQ_EVENT

2016-12-12 Thread Denis Plotnikov
When processing KVM_REQ_EVENT, apic_update_ppr is called which may set KVM_REQ_EVENT again if the recalculated value of PPR becomes smaller than the previous one. This results in cancelling the guest entry and reiterating in vcpu_enter_guest. However this is unnecessary because at this point KVM_R

Re: [PATCH v1] KVM: x86: avoid redundant REQ_EVENT

2016-12-12 Thread Radim Krčmář
2016-12-12 17:02+0300, Denis Plotnikov: > When processing KVM_REQ_EVENT, apic_update_ppr is called which may set > KVM_REQ_EVENT again if the recalculated value of PPR becomes smaller > than the previous one. This results in cancelling the guest entry and > reiterating in vcpu_enter_guest. > > How

Re: [PATCH v1] KVM: x86: avoid redundant REQ_EVENT

2016-12-13 Thread Roman Kagan
On Mon, Dec 12, 2016 at 05:29:43PM +0100, Radim Krčmář wrote: > 2016-12-12 17:02+0300, Denis Plotnikov: > > When processing KVM_REQ_EVENT, apic_update_ppr is called which may set > > KVM_REQ_EVENT again if the recalculated value of PPR becomes smaller > > than the previous one. This results in canc

Re: [PATCH v1] KVM: x86: avoid redundant REQ_EVENT

2016-12-13 Thread Radim Krčmář
2016-12-12 23:20+0300, Roman Kagan: > On Mon, Dec 12, 2016 at 05:29:43PM +0100, Radim Krčmář wrote: >> 2016-12-12 17:02+0300, Denis Plotnikov: >> > When processing KVM_REQ_EVENT, apic_update_ppr is called which may set >> > KVM_REQ_EVENT again if the recalculated value of PPR becomes smaller >> > t