Re: [PATCH 36/37] KVM: arm/arm64: Move VGIC APR save/restore to vgic put/load

2017-11-26 Thread Christoffer Dall
On Sun, Nov 26, 2017 at 06:09:25PM +0300, Yury Norov wrote: > On Thu, Oct 12, 2017 at 12:41:40PM +0200, Christoffer Dall wrote: > > The APRs can only have bits set when the guest acknowledges an interrupt > > in the LR and can only have a bit cleared when the guest EOIs an > > interrupt in the LR.

Re: [PATCH 36/37] KVM: arm/arm64: Move VGIC APR save/restore to vgic put/load

2017-11-26 Thread Yury Norov
On Thu, Oct 12, 2017 at 12:41:40PM +0200, Christoffer Dall wrote: > The APRs can only have bits set when the guest acknowledges an interrupt > in the LR and can only have a bit cleared when the guest EOIs an > interrupt in the LR. Therefore, if we have no LRs with any > pending/active interrupts,

[PATCH 36/37] KVM: arm/arm64: Move VGIC APR save/restore to vgic put/load

2017-10-12 Thread Christoffer Dall
The APRs can only have bits set when the guest acknowledges an interrupt in the LR and can only have a bit cleared when the guest EOIs an interrupt in the LR. Therefore, if we have no LRs with any pending/active interrupts, the APR cannot change value and there is no need to clear it on every exit