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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Apr 2015 09:15:05 +0000 (11:15 +0200)
commitbc1a23b6ed483568e8443647e9afdcadee2dca5e
tree84ac27fd831e04e22b8a59ded9044ac07a5e9b11
parentbd946bbe7f4d0fa0a18f6dabb0711d0faa707f4d
KVM: arm/arm64: vgic: fix GICD_ICFGR register accesses

commit f2ae85b2ab3776b9e4e42e5b6fa090f40d396794 upstream.

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>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
virt/kvm/arm/vgic.c