summaryrefslogtreecommitdiffstats
path: root/include/kvm
diff options
context:
space:
mode:
authorMarc Zyngier2016-02-17 11:25:05 +0100
committerMarc Zyngier2016-03-09 05:24:04 +0100
commit1b8e83c04ee2c05c0cd0d304c4b389adf24ebe7f (patch)
tree8b92402c42a91ad052a6393eee6294dc92b0f20a /include/kvm
parentKVM: arm/arm64: vgic-v2: Make GICD_SGIR quicker to hit (diff)
downloadkernel-qcow2-linux-1b8e83c04ee2c05c0cd0d304c4b389adf24ebe7f.tar.gz
kernel-qcow2-linux-1b8e83c04ee2c05c0cd0d304c4b389adf24ebe7f.tar.xz
kernel-qcow2-linux-1b8e83c04ee2c05c0cd0d304c4b389adf24ebe7f.zip
arm64: KVM: vgic-v3: Avoid accessing ICH registers
Just like on GICv2, we're a bit hammer-happy with GICv3, and access them more often than we should. Adopt a policy similar to what we do for GICv2, only save/restoring the minimal set of registers. As we don't access the registers linearly anymore (we may skip some), the convoluted accessors become slightly simpler, and we can drop the ugly indexing macro that tended to confuse the reviewers. Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/kvm')
-rw-r--r--include/kvm/arm_vgic.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h
index f473fd65fab5..281caf847fad 100644
--- a/include/kvm/arm_vgic.h
+++ b/include/kvm/arm_vgic.h
@@ -279,12 +279,6 @@ struct vgic_v2_cpu_if {
u32 vgic_lr[VGIC_V2_MAX_LRS];
};
-/*
- * LRs are stored in reverse order in memory. make sure we index them
- * correctly.
- */
-#define VGIC_V3_LR_INDEX(lr) (VGIC_V3_MAX_LRS - 1 - lr)
-
struct vgic_v3_cpu_if {
#ifdef CONFIG_KVM_ARM_VGIC_V3
u32 vgic_hcr;