]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4fc0e86f3aa496af03f350f6ae30fa38d8f61abd
tree0e50e7efae91b482d97a87da377896a3b7917c78
parent9f2bd86f4022e6a9cca2d386a0f44804c3784088
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