aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2015-03-05 09:47:44 -0500
committerChristoffer Dall <christoffer.dall@linaro.org>2015-03-11 10:27:48 -0400
commit0f37247574b3ef5b130116bbf7c0f9eb8a4c78c2 (patch)
tree74f7505562a2e7abef01280f7c63530f7d31df3e /virt/kvm
parent4ff6f8e61eb7f96d3ca535c6d240f863ccd6fb7d (diff)
KVM: vgic: add virt-capable compatible strings
Several dts only list "arm,cortex-a7-gic" or "arm,gic-400" in their GIC compatible list, and while this is correct (and supported by the GIC driver), KVM will fail to detect that it can support these cases. This patch adds the missing strings to the VGIC code. The of_device_id entries are padded to keep the probe function data aligned. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Andre Przywara <andre.przywara@arm.com> Cc: Christoffer Dall <christoffer.dall@linaro.org> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Michal Simek <monstr@monstr.eu> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'virt/kvm')
-rw-r--r--virt/kvm/arm/vgic.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c
index 0cc6ab6005a0..86cec7924611 100644
--- a/virt/kvm/arm/vgic.c
+++ b/virt/kvm/arm/vgic.c
@@ -1865,8 +1865,10 @@ static struct notifier_block vgic_cpu_nb = {
1865}; 1865};
1866 1866
1867static const struct of_device_id vgic_ids[] = { 1867static const struct of_device_id vgic_ids[] = {
1868 { .compatible = "arm,cortex-a15-gic", .data = vgic_v2_probe, }, 1868 { .compatible = "arm,cortex-a15-gic", .data = vgic_v2_probe, },
1869 { .compatible = "arm,gic-v3", .data = vgic_v3_probe, }, 1869 { .compatible = "arm,cortex-a7-gic", .data = vgic_v2_probe, },
1870 { .compatible = "arm,gic-400", .data = vgic_v2_probe, },
1871 { .compatible = "arm,gic-v3", .data = vgic_v3_probe, },
1870 {}, 1872 {},
1871}; 1873};
1872 1874