From mboxrd@z Thu Jan 1 00:00:00 1970 From: julien.grall@arm.com (Julien Grall) Date: Tue, 17 May 2016 16:50:11 +0100 Subject: [PATCH v4 49/56] KVM: arm/arm64: vgic-new: vgic_init: implement kvm_vgic_hyp_init In-Reply-To: <1463392481-26583-107-git-send-email-andre.przywara@arm.com> References: <1463392481-26583-1-git-send-email-andre.przywara@arm.com> <1463392481-26583-107-git-send-email-andre.przywara@arm.com> Message-ID: <573B3DB3.80707@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Andre, On 16/05/16 10:54, Andre Przywara wrote: > + > +/** > + * vgic_v2_probe - probe for a GICv2 compatible interrupt controller in DT > + * @node: pointer to the DT node This needs to be updated to match the parameters of vgic_v2_probe. > + * > + * Returns 0 if a GICv2 has been found, returns an error code otherwise > + */ > +int vgic_v2_probe(const struct gic_kvm_info *info) [...] > diff --git a/virt/kvm/arm/vgic/vgic-v3.c b/virt/kvm/arm/vgic/vgic-v3.c > index 8548297..de0e8e0 100644 > --- a/virt/kvm/arm/vgic/vgic-v3.c > +++ b/virt/kvm/arm/vgic/vgic-v3.c > @@ -15,6 +15,9 @@ > #include > #include > #include > +#include > +#include > +#include > > #include "vgic.h" > > @@ -182,3 +185,49 @@ void vgic_v3_get_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcrp) > vmcrp->bpr = (vmcr & ICH_VMCR_BPR0_MASK) >> ICH_VMCR_BPR0_SHIFT; > vmcrp->pmr = (vmcr & ICH_VMCR_PMR_MASK) >> ICH_VMCR_PMR_SHIFT; > } > + > +/** > + * vgic_v3_probe - probe for a GICv3 compatible interrupt controller in DT > + * @node: pointer to the DT node This needs to be updated to match the parameters of vgic_v3_probe. > + * > + * Returns 0 if a GICv3 has been found, returns an error code otherwise > + */ > +int vgic_v3_probe(const struct gic_kvm_info *info) Regards, -- Julien Grall