KVM: Initialize irqfd from kvm_init().
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 28 Feb 2013 11:33:18 +0000 (12:33 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 5 Mar 2013 22:12:16 +0000 (19:12 -0300)
commita0f155e9646d5f1c263f6f9aae880151100243bb
tree761de60204c9c0a5c2208775295c6baa9e5693fb
parent6a773cb825afb74a600a08fe87fab55ee98ec2ac
KVM: Initialize irqfd from kvm_init().

Currently, eventfd introduces module_init/module_exit functions
to initialize/cleanup the irqfd workqueue. This only works, however,
if no other module_init/module_exit functions are built into the
same module.

Let's just move the initialization and cleanup to kvm_init and kvm_exit.
This way, it is also clearer where kvm startup may fail.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
include/linux/kvm_host.h
virt/kvm/eventfd.c
virt/kvm/kvm_main.c