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>
Mon, 28 Apr 2014 11:06:22 +0000 (04:06 -0700)
commitf2ae85b2ab3776b9e4e42e5b6fa090f40d396794
tree0e50e7efae91b482d97a87da377896a3b7917c78
parent91021a6c8ffdc55804dab5acdfc7de4f278b9ac3
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>
virt/kvm/arm/vgic.c