]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: refactor MMIO accessors
authorAndre Przywara <andre.przywara@arm.com>
Wed, 11 Jun 2014 12:11:49 +0000 (14:11 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 20 Jan 2015 17:25:29 +0000 (18:25 +0100)
commit2da776161474e82f6a920e1e3d6a7140f4cab8e9
tree47ab5c6644d35a6a5feca2dad59b75be173d796a
parentc9d23d7e3a1f49e398cb4dd23d0861cd7dec5e8b
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 <andre.przywara@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic.c