]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7429d37f0cc8af5ef6c25c3d3f0c5b8ad2510d59
treec7ffcba90bd9af321c66285174aab7775b7941d9
parentdf7c55fcbe88c2dac2e39d96c49b51e425d5b0b6
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