KVM: VFIO: register kvm_device_ops dynamically
authorWill Deacon <will.deacon@arm.com>
Tue, 2 Sep 2014 09:27:36 +0000 (10:27 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:19:18 +0000 (17:19 +0200)
commit7bd2f48101c8f43cd36e9920c7315df8575b61a8
tree2fc70cea4ff5ea20388b41d6f8d84d38a8229346
parent9e95eca3b761209d08e97144de3962f355ee2078
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>
(cherry picked from commit 80ce1639727e9d38729c34f162378508c307ca25)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
include/linux/kvm_host.h
virt/kvm/kvm_main.c
virt/kvm/vfio.c