OSDN Git Service

KVM: arm/arm64: vgic: Get rid of unnecessary process_maintenance operation
authorChristoffer Dall <christoffer.dall@linaro.org>
Thu, 29 Dec 2016 14:44:27 +0000 (15:44 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:07 +0000 (07:49 -0700)
commitaf0614991ab64a55f86cda257cedff1be4e435fa
treed0c876ab932ba4761eaabc14b00243631e243c38
parent90cac1f52ad1db73b6ed99143ce7ad473bd90a95
KVM: arm/arm64: vgic: Get rid of unnecessary process_maintenance operation

Since we always read back the LRs that we wrote to the guest and the
MISR and EISR registers simply provide a summary of the configuration of
the bits in the LRs, there is really no need to read back those status
registers and process them.  We might as well just signal the
notifyfd when folding the LR state and save some cycles in the process.
We now clear the underflow bit in the fold_lr_state functions as we only
need to clear this bit if we had used all the LRs, so this is as good a
place as any to do that work.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic/vgic-v2.c
virt/kvm/arm/vgic/vgic-v3.c
virt/kvm/arm/vgic/vgic.c
virt/kvm/arm/vgic/vgic.h