From: Andre Przywara Date: Wed, 11 Jun 2014 12:11:49 +0000 (+0200) Subject: arm/arm64: KVM: refactor MMIO accessors X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~97^2~37^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d97f683d0f4b2e63e68869f81ba2ce4ccbb6e5d8;p=pandora-kernel.git arm/arm64: KVM: refactor MMIO accessors The MMIO accessors for GICD_I[CS]ENABLER, GICD_I[CS]PENDR and GICD_ICFGR behave very similar for GICv2 and GICv3, although the way the affected VCPU is determined differs. Since we need them to access the registers from three different places in the future, we factor out a generic, backend-facing implementation and use small wrappers in the current GICv2 emulation. This will ease adding GICv3 accessors later. Signed-off-by: Andre Przywara Reviewed-by: Christoffer Dall Signed-off-by: Christoffer Dall --- Reading git-diff-tree failed