KVM: arm/arm64: vgic: fix GICD_ICFGR register accesses
authorAndre Przywara <andre.przywara@arm.com>
Thu, 10 Apr 2014 22:07:18 +0000 (00:07 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:41 +0000 (17:18 +0200)
commitbc38de2312a2a078f2d5ad596888a131d811b143
treeeeb6f2527efa1741ae3b891eb5154a390ae3e013
parent6e349e33cec7724f9ae0520a1539ab7cf1d24893
KVM: arm/arm64: vgic: fix GICD_ICFGR register accesses

Since KVM internally represents the ICFGR registers by stuffing two
of them into one word, the offset for accessing the internal
representation and the one for the MMIO based access are different.
So keep the original offset around, but adjust the internal array
offset by one bit.

Reported-by: Haibin Wang <wanghaibin.wang@huawei.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit f2ae85b2ab3776b9e4e42e5b6fa090f40d396794)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic.c