summaryrefslogtreecommitdiffstats
path: root/include/kvm
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2015-03-26 14:39:37 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2015-03-30 17:07:13 +0100
commitfb8f61abab48467ef670ef165ff664cdc94f742e (patch)
treed03dcb804024ebe6b324da921432dad668253cd1 /include/kvm
parent0ba10d53920d030cd7772a9553b13b5ea1aa4115 (diff)
downloadlinux-stable-fb8f61abab48467ef670ef165ff664cdc94f742e.tar.gz
linux-stable-fb8f61abab48467ef670ef165ff664cdc94f742e.tar.bz2
linux-stable-fb8f61abab48467ef670ef165ff664cdc94f742e.zip
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>
Diffstat (limited to 'include/kvm')
-rw-r--r--include/kvm/arm_vgic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h
index 4523984bd217..d6705f447c28 100644
--- a/include/kvm/arm_vgic.h
+++ b/include/kvm/arm_vgic.h
@@ -252,6 +252,7 @@ struct vgic_dist {
struct vgic_vm_ops vm_ops;
struct vgic_io_device dist_iodev;
+ struct vgic_io_device *redist_iodevs;
};
struct vgic_v2_cpu_if {