diff options
author | Eric Auger <eric.auger@linaro.org> | 2015-12-01 09:02:35 -0500 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2016-05-20 09:40:05 -0400 |
commit | 909777324588b40d431e6e3af0911ee62e0d00e3 (patch) | |
tree | 90c53aef39980fca19e84de6f070f65e41cf626d /include/kvm | |
parent | 878c569e45066a76a2a841dab965e6d22c4e187e (diff) |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kvm/vgic/vgic.h b/include/kvm/vgic/vgic.h index 3689b9bf3af7..393489fdc480 100644 --- a/include/kvm/vgic/vgic.h +++ b/include/kvm/vgic/vgic.h | |||
@@ -195,6 +195,7 @@ struct vgic_cpu { | |||
195 | }; | 195 | }; |
196 | 196 | ||
197 | int kvm_vgic_addr(struct kvm *kvm, unsigned long type, u64 *addr, bool write); | 197 | int kvm_vgic_addr(struct kvm *kvm, unsigned long type, u64 *addr, bool write); |
198 | int kvm_vgic_hyp_init(void); | ||
198 | 199 | ||
199 | int kvm_vgic_inject_irq(struct kvm *kvm, int cpuid, unsigned int intid, | 200 | int kvm_vgic_inject_irq(struct kvm *kvm, int cpuid, unsigned int intid, |
200 | bool level); | 201 | bool level); |