OSDN Git Service

KVM: VFIO: register kvm_device_ops dynamically
authorWill Deacon <will.deacon@arm.com>
Tue, 2 Sep 2014 09:27:36 +0000 (10:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Sep 2014 11:10:10 +0000 (13:10 +0200)
commit80ce1639727e9d38729c34f162378508c307ca25
treec7ffcba90bd9af321c66285174aab7775b7941d9
parent84877d93336de21a6251db00b841468a83c65906
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>
include/linux/kvm_host.h
virt/kvm/kvm_main.c
virt/kvm/vfio.c