]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: prepare GICv3 emulation to use kvm_io_bus MMIO handling
authorAndre Przywara <andre.przywara@arm.com>
Thu, 26 Mar 2015 14:39:37 +0000 (14:39 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 30 Mar 2015 16:07:13 +0000 (17:07 +0100)
commitc4e7bc84f99426d926c18bf9880c25818fd2d39d
treed03dcb804024ebe6b324da921432dad668253cd1
parent36b7149ecb1ebb7be167b7fb6234b67b1caa7f2d
KVM: arm/arm64: prepare GICv3 emulation to use kvm_io_bus MMIO handling

Using the framework provided by the recent vgic.c changes, we
register a kvm_io_bus device on mapping the virtual GICv3 resources.
The distributor mapping is pretty straight forward, but the
redistributors need some more love, since they need to be tagged with
the respective redistributor (read: VCPU) they are connected with.
We use the kvm_io_bus framework to register one devices per VCPU.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/kvm/arm_vgic.h
virt/kvm/arm/vgic-v3-emul.c