]> 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)
commit9e4ad8e97eac85e32329b491f3203ed678a621f8
treed03dcb804024ebe6b324da921432dad668253cd1
parent73b6838c5487847b2c6ece2011b85b35bef83d9b
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