KVM: arm/arm64: vgic: Rely on the GIC driver to parse the firmware tables
authorJulien Grall <julien.grall@arm.com>
Mon, 11 Apr 2016 15:32:59 +0000 (16:32 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 3 May 2016 10:54:21 +0000 (12:54 +0200)
commit503a62862e8fc08b2d4c0db06ba3adae3bbd61bc
tree7a0ea075e41fa405b25eba35d7a86f305575856f
parent29c2d6ff4cf9af6bcbba3a76aae1d5cacd5da16b
KVM: arm/arm64: vgic: Rely on the GIC driver to parse the firmware tables

Currently, the firmware tables are parsed 2 times: once in the GIC
drivers, the other time when initializing the vGIC. It means code
duplication and make more tedious to add the support for another
firmware table (like ACPI).

Use the recently introduced helper gic_get_kvm_info() to get
information about the virtual GIC.

With this change, the virtual GIC becomes agnostic to the firmware
table and KVM will be able to initialize the vGIC on ACPI.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
include/kvm/arm_vgic.h
virt/kvm/arm/vgic-v2.c
virt/kvm/arm/vgic-v3.c
virt/kvm/arm/vgic.c
This page took 0.027424 seconds and 5 git commands to generate.