diff options
| author | Will Deacon <will.deacon@arm.com> | 2014-09-02 05:27:36 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-09-17 07:10:10 -0400 |
| commit | 80ce1639727e9d38729c34f162378508c307ca25 (patch) | |
| tree | c7ffcba90bd9af321c66285174aab7775b7941d9 /include/linux | |
| parent | 84877d93336de21a6251db00b841468a83c65906 (diff) | |
KVM: VFIO: register kvm_device_ops dynamically
Now that we have a dynamic means to register kvm_device_ops, use that
for the VFIO kvm device, instead of relying on the static table.
This is achieved by a module_init call to register the ops with KVM.
Cc: Gleb Natapov <gleb@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Alex Williamson <Alex.Williamson@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kvm_host.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 7ef088bec715..d44a2d640551 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -1068,7 +1068,6 @@ int kvm_register_device_ops(struct kvm_device_ops *ops, u32 type); | |||
| 1068 | 1068 | ||
| 1069 | extern struct kvm_device_ops kvm_mpic_ops; | 1069 | extern struct kvm_device_ops kvm_mpic_ops; |
| 1070 | extern struct kvm_device_ops kvm_xics_ops; | 1070 | extern struct kvm_device_ops kvm_xics_ops; |
| 1071 | extern struct kvm_device_ops kvm_vfio_ops; | ||
| 1072 | 1071 | ||
| 1073 | #ifdef CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT | 1072 | #ifdef CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT |
| 1074 | 1073 | ||
