summaryrefslogtreecommitdiff
path: root/include/kvm
diff options
context:
space:
mode:
authorEric Auger <eric.auger@linaro.org>2015-12-01 14:02:35 (GMT)
committerChristoffer Dall <christoffer.dall@linaro.org>2016-05-20 13:40:05 (GMT)
commit909777324588b40d431e6e3af0911ee62e0d00e3 (patch)
tree90c53aef39980fca19e84de6f070f65e41cf626d /include/kvm
parent878c569e45066a76a2a841dab965e6d22c4e187e (diff)
downloadlinux-909777324588b40d431e6e3af0911ee62e0d00e3.tar.xz
KVM: arm/arm64: vgic-new: vgic_init: implement kvm_vgic_hyp_init
Implements kvm_vgic_hyp_init and vgic_probe function. This uses the new firmware independent VGIC probing to support both ACPI and DT based systems (code from Marc Zyngier). The vgic_global struct is enriched with new fields populated by those functions. Signed-off-by: Eric Auger <eric.auger@linaro.org> Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'include/kvm')
-rw-r--r--include/kvm/vgic/vgic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kvm/vgic/vgic.h b/include/kvm/vgic/vgic.h
index 3689b9b..393489f 100644
--- a/include/kvm/vgic/vgic.h
+++ b/include/kvm/vgic/vgic.h
@@ -195,6 +195,7 @@ struct vgic_cpu {
};
int kvm_vgic_addr(struct kvm *kvm, unsigned long type, u64 *addr, bool write);
+int kvm_vgic_hyp_init(void);
int kvm_vgic_inject_irq(struct kvm *kvm, int cpuid, unsigned int intid,
bool level);