KVM: ARM: vgic: register kvm_device_ops dynamically
Now that we have a dynamic means to register kvm_device_ops, use that for the ARM VGIC, instead of relying on the static table. Cc: Gleb Natapov <gleb@kernel.org> Cc: Paolo Bonzini <pbonzini@redhat.com> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:

committed by
Paolo Bonzini

parent
d60eacb070
commit
c06a841bf3
@@ -2286,10 +2286,6 @@ static struct kvm_device_ops *kvm_device_ops_table[KVM_DEV_TYPE_MAX] = {
|
||||
[KVM_DEV_TYPE_VFIO] = &kvm_vfio_ops,
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_KVM_ARM_VGIC
|
||||
[KVM_DEV_TYPE_ARM_VGIC_V2] = &kvm_arm_vgic_v2_ops,
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_S390
|
||||
[KVM_DEV_TYPE_FLIC] = &kvm_flic_ops,
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user