mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Andre Przywara <[email protected]> Reviewed-by: Christoffer Dall <[email protected]>
This commit is contained in:
parent
878c569e45
commit
9097773245
5 changed files with 246 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue