]> 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)
commita25d3f1844ffe797107ddcdb671050624a5d1813
tree0e50e7efae91b482d97a87da377896a3b7917c78
parentc319c7b7daa16bab0b8a3b66967ed9866263e61a
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