]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm/arm64: KVM: move kvm_register_device_ops() into vGIC probing
authorAndre Przywara <andre.przywara@arm.com>
Sun, 26 Oct 2014 23:17:00 +0000 (23:17 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 20 Jan 2015 17:25:27 +0000 (18:25 +0100)
commitea2f83a7de9d0abbd145e37177905aab57fdb835
tree4220e1e4b48490923d9d6fd5f1ac1e2d289bb26c
parentb26e5fdac43c1b7c394502917e42e3b91f3aa1a3
arm/arm64: KVM: move kvm_register_device_ops() into vGIC probing

Currently we unconditionally register the GICv2 emulation device
during the host's KVM initialization. Since with GICv3 support we
may end up with only v2 or only v3 or both supported, we move the
registration into the GIC probing function, where we will later know
which combination is valid.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
include/linux/kvm_host.h
virt/kvm/arm/vgic-v2.c
virt/kvm/arm/vgic-v3.c
virt/kvm/arm/vgic.c