Re: [PATCH v2 08/17] arm64: KVM: vgic-v2: Save maintenance interrupt state only if required

2016-03-03 Thread Marc Zyngier
On Thu, 3 Mar 2016 00:08:06 +0100 Christoffer Dall wrote: > On Wed, Feb 17, 2016 at 04:40:40PM +, Marc Zyngier wrote: > > Next on our list of useless accesses is the maintenance interrupt > > status registers (GICH_MISR, GICH_EISR{0,1}). > > > > It is pointless

Re: [PATCH v2 08/17] arm64: KVM: vgic-v2: Save maintenance interrupt state only if required

2016-03-02 Thread Christoffer Dall
On Wed, Feb 17, 2016 at 04:40:40PM +, Marc Zyngier wrote: > Next on our list of useless accesses is the maintenance interrupt > status registers (GICH_MISR, GICH_EISR{0,1}). > > It is pointless to save them if we haven't asked for a maintenance > interrupt the first place, which can only

[PATCH v2 08/17] arm64: KVM: vgic-v2: Save maintenance interrupt state only if required

2016-02-17 Thread Marc Zyngier
Next on our list of useless accesses is the maintenance interrupt status registers (GICH_MISR, GICH_EISR{0,1}). It is pointless to save them if we haven't asked for a maintenance interrupt the first place, which can only happen for two reasons: - Underflow: GICH_HCR_UIE will be set, - EOI: