]> git.baikalelectronics.ru Git - kernel.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)
commit1ad3e31dede603066d687ca16cb19e0c23a25d35
tree4220e1e4b48490923d9d6fd5f1ac1e2d289bb26c
parentd1f097ba9dea3001d304b509131b0957923a2acb
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